diff options
author | 2019-12-16 11:38:19 +0100 | |
---|---|---|
committer | 2019-12-16 07:03:12 -0800 | |
commit | 450278977acbf494a20367c22fbb38729772d1fc (patch) | |
tree | 2102b52a97c2a2ad6d167a3269ed394df385826a /samples/vfio-mdev | |
parent | samples/bpf: Add missing -lz to TPROGS_LDLIBS (diff) | |
download | linux-450278977acbf494a20367c22fbb38729772d1fc.tar.gz linux-450278977acbf494a20367c22fbb38729772d1fc.tar.bz2 linux-450278977acbf494a20367c22fbb38729772d1fc.zip |
samples/bpf: Set -fno-stack-protector when building BPF programs
It seems Clang can in some cases turn on stack protection by default, which
doesn't work with BPF. This was reported once before[0], but it seems the
flag to explicitly turn off the stack protector wasn't added to the
Makefile, so do that now.
The symptom of this is compile errors like the following:
error: <unknown>:0:0: in function bpf_prog1 i32 (%struct.__sk_buff*): A call to built-in function '__stack_chk_fail' is not supported.
[0] https://www.spinics.net/lists/netdev/msg556400.html
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191216103819.359535-1-toke@redhat.com
Diffstat (limited to 'samples/vfio-mdev')
0 files changed, 0 insertions, 0 deletions