samples: bpf: Suppress readelf stderr when probing for BTF support
authorPu Lehui <pulehui@huawei.com>
Thu, 21 Oct 2021 12:39:13 +0000 (20:39 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 21 Oct 2021 22:09:23 +0000 (15:09 -0700)
commit44ce0ac11e4e6dd1aee2e41e7d74f95f3b961cfb
tree1e8ec97aaa8f85730fcdb21008af17704638987b
parentdb5b6a46f43aba3473c8b6b1d11aff1fa2aa354b
samples: bpf: Suppress readelf stderr when probing for BTF support

When compiling bpf samples, the following warning appears:

readelf: Error: Missing knowledge of 32-bit reloc types used in DWARF
sections of machine number 247
readelf: Warning: unable to apply unsupported reloc type 10 to section
.debug_info
readelf: Warning: unable to apply unsupported reloc type 1 to section
.debug_info
readelf: Warning: unable to apply unsupported reloc type 10 to section
.debug_info

Same problem was mentioned in commit 2f0921262ba9 ("selftests/bpf:
suppress readelf stderr when probing for BTF support"), let's use
readelf that supports btf.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20211021123913.48833-1-pulehui@huawei.com
samples/bpf/Makefile