Commit c1449735 authored by Sathvika Vasireddy's avatar Sathvika Vasireddy Committed by Michael Ellerman
Browse files
parent de6fbced
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2,5 +2,7 @@
#define _OBJTOOL_ARCH_ELF

#define R_NONE R_X86_64_NONE
#define R_ABS64 R_X86_64_64
#define R_ABS32 R_X86_64_32

#endif /* _OBJTOOL_ARCH_ELF */
+1 −1
Original line number Diff line number Diff line
@@ -885,7 +885,7 @@ static int create_mcount_loc_sections(struct objtool_file *file)
		memset(loc, 0, addrsize);

		if (elf_add_reloc_to_insn(file->elf, sec, idx,
					  R_X86_64_64,
					  addrsize == sizeof(u64) ? R_ABS64 : R_ABS32,
					  insn->sec, insn->offset))
			return -1;