OSDN Git Service

selftests/bpf: Ensure no DWARF relocations for BPF object files
authorAndrii Nakryiko <andriin@fb.com>
Thu, 21 Nov 2019 07:07:40 +0000 (23:07 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 25 Nov 2019 00:58:45 +0000 (16:58 -0800)
commitffc88174cdcf5f51fb7f6298fe9203a36c904f1f
tree0776748fd7991bad8fd5ff1d8070d9d29035f8f7
parenta8fdaad5cfd250b9effcec942b3bf7bc5a6c8b17
selftests/bpf: Ensure no DWARF relocations for BPF object files

Add -mattr=dwarfris attribute to llc to avoid having relocations against DWARF
data. These relocations make it impossible to inspect DWARF contents: all
strings are invalid.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191121070743.1309473-2-andriin@fb.com
tools/testing/selftests/bpf/Makefile