samples/bpf: fix bpf loader
authorAlexei Starovoitov <ast@fb.com>
Wed, 23 Nov 2016 00:52:09 +0000 (16:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Nov 2016 21:04:52 +0000 (16:04 -0500)
commitdb6a71dd9a75fb07f6758582299acfe1ab5827dc
treec666faa713221f3177d849f99b16ad3428d7d684
parentd2b024d32d6e6f704633a8a474bd883cf9e25254
samples/bpf: fix bpf loader

llvm can emit relocations into sections other than program code
(like debug info sections). Ignore them during parsing of elf file

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/bpf_load.c