diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-06-26 20:13:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-28 21:39:16 +0900 |
commit | 8e75887d321d102200abf3a9fa621e2c10ff4cc5 (patch) | |
tree | 6c43fe825ee8cee037dbbfae0a80d9d5f49d0b78 /net/bpfilter/bpfilter_umh_blob.S | |
parent | 977c7114ebda2e746a114840d3a875e0cdb826fb (diff) | |
download | linux-8e75887d321d102200abf3a9fa621e2c10ff4cc5.tar.bz2 |
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>
Diffstat (limited to 'net/bpfilter/bpfilter_umh_blob.S')
-rw-r--r-- | net/bpfilter/bpfilter_umh_blob.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/bpfilter/bpfilter_umh_blob.S b/net/bpfilter/bpfilter_umh_blob.S new file mode 100644 index 000000000000..40311d10d2f2 --- /dev/null +++ b/net/bpfilter/bpfilter_umh_blob.S @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + .section .init.rodata, "a" + .global bpfilter_umh_start +bpfilter_umh_start: + .incbin "net/bpfilter/bpfilter_umh" + .global bpfilter_umh_end +bpfilter_umh_end: |