linux/tools/lib
Tony Ambardar 0aed726cf6 libbpf: Support linking bpf objects of either endianness
Allow static linking object files of either endianness, checking that input
files have consistent byte-order, and setting output endianness from input.

Linking requires in-memory processing of programs, relocations, sections,
etc. in native endianness, and output conversion to target byte-order. This
is enabled by built-in ELF translation and recent BTF/BTF.ext endianness
functions. Further add local functions for swapping byte-order of sections
containing BPF insns.

Signed-off-by: Tony Ambardar <tony.ambardar@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/b47ca686d02664843fc99b96262fe3259650bc43.1726475448.git.tony.ambardar@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2024-10-03 17:47:36 -07:00
..
api tools: Drop nonsensical -O6 2024-09-11 13:08:36 -03:00
bpf libbpf: Support linking bpf objects of either endianness 2024-10-03 17:47:36 -07:00
perf
subcmd tools: Drop nonsensical -O6 2024-09-11 13:08:36 -03:00
symbol tools: Drop nonsensical -O6 2024-09-11 13:08:36 -03:00
thermal
argv_split.c
bitmap.c
cmdline.c
ctype.c
find_bit.c
hweight.c
list_sort.c
rbtree.c
slab.c
str_error_r.c
string.c
vsprintf.c
zalloc.c