Skip to content
Commit 41462c6e authored by Kun-Chuan Hsieh's avatar Kun-Chuan Hsieh Committed by Daniel Borkmann
Browse files

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: 51f6463a ("tools/resolve_btfids: Fix sections with wrong alignment")
Signed-off-by: default avatarKun-Chuan Hsieh <jetswayss@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/bpf/20210224052752.5284-1-jetswayss@gmail.com
parent c41d81bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment