linux/tools/objtool
Vasily Gorbik f66c05d6ba objtool/x86: Fix elf_add_alternative() endianness
Currently x86 kernel cross-compiled on big endian system fails at boot with:

  kernel BUG at arch/x86/kernel/alternative.c:258!

Corresponding bug condition look like the following:

  BUG_ON(feature >= (NCAPINTS + NBUGINTS) * 32);

Fix that by converting alternative feature/cpuid to target endianness.

Fixes: 9bc0bb5072 ("objtool/x86: Rewrite retpoline thunk calls")
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: https://lore.kernel.org/r/patch-2.thread-6c9df9.git-6c9df9a8098d.your-ad-here.call-01620841104-ext-2554@work.hours
2021-05-12 21:17:01 +02:00
..
Documentation
arch/x86 objtool/x86: Fix elf_add_alternative() endianness 2021-05-12 21:17:01 +02:00
include/objtool Objtool updates in this cycle were: 2021-04-28 12:53:24 -07:00
.gitignore
Build
Makefile
builtin-check.c
builtin-orc.c
check.c Objtool updates in this cycle were: 2021-04-28 12:53:24 -07:00
elf.c objtool: Fix elf_create_undef_symbol() endianness 2021-05-12 21:16:53 +02:00
objtool.c Objtool updates in this cycle were: 2021-04-28 12:53:24 -07:00
orc_dump.c
orc_gen.c objtool: Create reloc sections implicitly 2021-04-02 12:44:37 +02:00
special.c objtool: Skip magical retpoline .altinstr_replacement 2021-04-02 12:46:57 +02:00
sync-check.sh
weak.c