diff options
author | Alexei Starovoitov <alexei.starovoitov@gmail.com> | 2017-01-17 07:26:17 +0000 |
---|---|---|
committer | Alexei Starovoitov <alexei.starovoitov@gmail.com> | 2017-01-17 07:26:17 +0000 |
commit | e4975487f53110b32bca15878407dc1549ac4b74 (patch) | |
tree | b9b4f289cb462b06f9e7e97e07a21e6e2464defc /llvm/lib/Support/Compression.cpp | |
parent | c0857a40e7976c06612ab8f4a5335e99eab3f4ff (diff) | |
download | llvm-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