diff options
author | 2022-04-17 17:03:40 +0200 | |
---|---|---|
committer | 2022-04-22 12:13:55 +0200 | |
commit | c087c6e7b551b7f208c0b852304f044954cf2bb3 (patch) | |
tree | dedb165441c56244675fffdd2bb8ce45840b4add /scripts/gdb/linux/utils.py | |
parent | objtool: Fix function fallthrough detection for vmlinux (diff) | |
download | wireguard-linux-c087c6e7b551b7f208c0b852304f044954cf2bb3.tar.xz wireguard-linux-c087c6e7b551b7f208c0b852304f044954cf2bb3.zip |
objtool: Fix type of reloc::addend
Elf{32,64}_Rela::r_addend is of type: Elf{32,64}_Sword, that means
that our reloc::addend needs to be long or face tuncation issues when
we do elf_rebuild_reloc_section():
- 107: 48 b8 00 00 00 00 00 00 00 00 movabs $0x0,%rax 109: R_X86_64_64 level4_kernel_pgt+0x80000067
+ 107: 48 b8 00 00 00 00 00 00 00 00 movabs $0x0,%rax 109: R_X86_64_64 level4_kernel_pgt-0x7fffff99
Fixes: 627fce14809b ("objtool: Add ORC unwind table generation")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20220419203807.596871927@infradead.org
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions