aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Compression.cpp
diff options
context:
space:
mode:
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>2017-01-17 07:26:17 +0000
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>2017-01-17 07:26:17 +0000
commite4975487f53110b32bca15878407dc1549ac4b74 (patch)
treeb9b4f289cb462b06f9e7e97e07a21e6e2464defc /llvm/lib/Support/Compression.cpp
parentc0857a40e7976c06612ab8f4a5335e99eab3f4ff (diff)
downloadllvm-e4975487f53110b32bca15878407dc1549ac4b74.zip
llvm-e4975487f53110b32bca15878407dc1549ac4b74.tar.gz
llvm-e4975487f53110b32bca15878407dc1549ac4b74.tar.bz2
[bpf] error when unknown bpf helper is called
Emit error when BPF backend sees a call to a global function or to an external symbol. The kernel verifier only allows calls to predefined helpers from bpf.h which are defined in 'enum bpf_func_id'. Such calls in assembler must look like 'call [1-9]+' where number matches bpf_func_id. Signed-off-by: Alexei Starovoitov <ast@kernel.org> llvm-svn: 292204
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
0 files changed, 0 insertions, 0 deletions