aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2025-07-06 10:55:59 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2025-07-06 10:55:59 -0700
commit95eb0d389b4a518a2630b18fbc5916a008f519f1 (patch)
treed56ef6b691837e8959549c439c3a4c0164f0b9ad
parenta1639ce5e590300af45bebedfbacf8fabc1777ed (diff)
parentccdd09e0fc0d5ce6dfc8360f0c88da9a5045b6ea (diff)
downloadlinux-95eb0d389b4a518a2630b18fbc5916a008f519f1.tar.gz
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()
-rw-r--r--tools/objtool/check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index f23bdda737aaa5..d967ac001498bb 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -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);