linux/tools/objtool
Christophe Leroy 0646c28b41 objtool: Use target file endianness instead of a compiled constant
Some architectures like powerpc support both endianness, it's
therefore not possible to fix the endianness via arch/endianness.h
because there is no easy way to get the target endianness at
build time.

Use the endianness recorded in the file objtool is working on.

Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221114175754.1131267-10-sv@linux.ibm.com
2022-11-18 19:00:15 +11:00
..
arch/x86 objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
Documentation objtool: Update documentation 2022-04-22 12:32:05 +02:00
include/objtool objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
.gitignore objtool: Rework header include paths 2021-01-13 18:13:14 -06:00
Build objtool: Ditch subcommands 2022-04-22 12:32:01 +02:00
builtin-check.c x86/retbleed: Add fine grained Kconfig knobs 2022-06-29 17:43:41 +02:00
check.c objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
elf.c objtool: Preserve special st_shndx indexes in elf_update_symbol 2022-09-26 10:13:15 -07:00
Makefile Kbuild updates for v5.19 2022-05-26 12:09:50 -07:00
objtool.c x86,objtool: Create .return_sites 2022-06-27 10:33:58 +02:00
orc_dump.c objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
orc_gen.c objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
special.c objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
sync-check.sh Merge branch 'x86/cpu' into WIP.x86/core, to merge the NOP changes & resolve a semantic conflict 2021-04-02 12:36:30 +02:00
weak.c objtool: Ditch subcommands 2022-04-22 12:32:01 +02:00