linux-sg2042/tools/bpf/resolve_btfids
Kun-Chuan Hsieh 41462c6e73 tools/resolve_btfids: Fix build error with older host toolchains
Older libelf.h and glibc elf.h might not yet define the ELF compression
types.

Checking and defining SHF_COMPRESSED fix the build error when compiling
with older toolchains. Also, the tool resolve_btfids is compiled with host
toolchain. The host toolchain is more likely to be older than the cross
compile toolchain.

Fixes: 51f6463aac ("tools/resolve_btfids: Fix sections with wrong alignment")
Signed-off-by: Kun-Chuan Hsieh <jetswayss@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/bpf/20210224052752.5284-1-jetswayss@gmail.com
2021-02-24 17:19:11 +01:00
..
.gitignore tools/resolve_btfids: Add /libbpf to .gitignore 2021-02-12 13:08:26 -08:00
Build bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object 2020-07-13 10:42:02 -07:00
Makefile tools/resolve_btfids: Set srctree variable unconditionally 2021-02-08 21:21:39 -08:00
main.c tools/resolve_btfids: Fix build error with older host toolchains 2021-02-24 17:19:11 +01:00