summaryrefslogtreecommitdiffstats
path: root/tools/bpf/resolve_btfids
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2020-07-14 12:25:33 +0200
committerAlexei Starovoitov <ast@kernel.org>2020-07-14 19:20:31 +0200
commit079ef53673f2e3b3ee1728800311f20f28eed4f7 (patch)
tree95055f93a2154cbb0ffa02a322bb66b1cf8e19d6 /tools/bpf/resolve_btfids
parentselftests/bpf: Fix merge conflict resolution (diff)
downloadlinux-079ef53673f2e3b3ee1728800311f20f28eed4f7.tar.xz
linux-079ef53673f2e3b3ee1728800311f20f28eed4f7.zip
bpf: Fix build for disabled CONFIG_DEBUG_INFO_BTF option
Stephen reported following linker warnings on powerpc build: ld: warning: orphan section `.BTF_ids' from `kernel/trace/bpf_trace.o' being placed in section `.BTF_ids' ld: warning: orphan section `.BTF_ids' from `kernel/bpf/btf.o' being placed in section `.BTF_ids' ld: warning: orphan section `.BTF_ids' from `kernel/bpf/stackmap.o' being placed in section `.BTF_ids' ld: warning: orphan section `.BTF_ids' from `net/core/filter.o' being placed in section `.BTF_ids' ld: warning: orphan section `.BTF_ids' from `kernel/trace/bpf_trace.o' being placed in section `.BTF_ids' It's because we generated .BTF_ids section even when CONFIG_DEBUG_INFO_BTF is not enabled. Fixing this by generating empty btf_id arrays for this case. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/bpf/20200714102534.299280-1-jolsa@kernel.org
Diffstat (limited to 'tools/bpf/resolve_btfids')
0 files changed, 0 insertions, 0 deletions