]> git.proxmox.com Git - mirror_iproute2.git/commit
tc, bpf: make sure relo is in relation with map section
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 21 Jan 2016 23:46:28 +0000 (00:46 +0100)
committerStephen Hemminger <shemming@brocade.com>
Tue, 2 Feb 2016 05:04:11 +0000 (16:04 +1100)
commit2486337aace9df195eb3d01fb08b665958ce311d
treeb4ad6883769c9baa9bd29cc782638eae989a7f87
parent4a36b4c2ecafa9ec377fd1ed2a47b74df1c27900
tc, bpf: make sure relo is in relation with map section

Add a test that symbol from relocation entry is actually related
to map section and bail out with an error message if it's not the
case; in relation to [1].

  [1] https://llvm.org/bugs/show_bug.cgi?id=26243

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
tc/tc_bpf.c