]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80cdcf62540874f722b2f83257da6192baa917ff
tree6c43fe825ee8cee037dbbfae0a80d9d5f49d0b78
parent5a4bc5c29ae41bcc6a4ade30b5f96f2673d0a53f
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]