bpfilter: include bpfilter_umh in assembly instead of using objcopy
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 27 Jun 2018 03:13:48 +0000 (20:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2018 12:39:16 +0000 (21:39 +0900)
commit8e75887d321d102200abf3a9fa621e2c10ff4cc5
tree6c43fe825ee8cee037dbbfae0a80d9d5f49d0b78
parent977c7114ebda2e746a114840d3a875e0cdb826fb
bpfilter: include bpfilter_umh in assembly instead of using objcopy

What we want here is to embed a user-space program into the kernel.
Instead of the complex ELF magic, let's simply wrap it in the assembly
with the '.incbin' directive.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bpfilter/Makefile
net/bpfilter/bpfilter_kern.c
net/bpfilter/bpfilter_umh_blob.S [new file with mode: 0644]