We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de6fbce commit c144973Copy full SHA for c144973
tools/objtool/arch/x86/include/arch/elf.h
@@ -2,5 +2,7 @@
2
#define _OBJTOOL_ARCH_ELF
3
4
#define R_NONE R_X86_64_NONE
5
+#define R_ABS64 R_X86_64_64
6
+#define R_ABS32 R_X86_64_32
7
8
#endif /* _OBJTOOL_ARCH_ELF */
tools/objtool/check.c
@@ -885,7 +885,7 @@ static int create_mcount_loc_sections(struct objtool_file *file)
885
memset(loc, 0, addrsize);
886
887
if (elf_add_reloc_to_insn(file->elf, sec, idx,
888
- R_X86_64_64,
+ addrsize == sizeof(u64) ? R_ABS64 : R_ABS32,
889
insn->sec, insn->offset))
890
return -1;
891
0 commit comments