Commit 95eb0d38 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'objtool_urgent_for_v6.16_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull objtool fix from Borislav Petkov:

 - Fix the compilation of an x86 kernel on a big engian machine due to a
   missed endianness conversion

* tag 'objtool_urgent_for_v6.16_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  objtool: Add missing endian conversion to read_annotate()
parents a1639ce5 ccdd09e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2318,6 +2318,7 @@ static int read_annotate(struct objtool_file *file,

	for_each_reloc(sec->rsec, reloc) {
		type = *(u32 *)(sec->data->d_buf + (reloc_idx(reloc) * sec->sh.sh_entsize) + 4);
		type = bswap_if_needed(file->elf, type);

		offset = reloc->sym->offset + reloc_addend(reloc);
		insn = find_insn(file, reloc->sym->sec, offset);