summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets/Le64.cpp
diff options
context:
space:
mode:
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>2017-11-19 01:35:00 +0000
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>2017-11-19 01:35:00 +0000
commit9a67245d881f4cf89fd8f897ae2cd0bccec49496 (patch)
treebe1166344599d69ad93901682d2f9d9ecf0f5e76 /clang/lib/Basic/Targets/Le64.cpp
parent9a94dfc457443b263ded785722bdd085cb05ab22 (diff)
downloadbcm5719-llvm-9a67245d881f4cf89fd8f897ae2cd0bccec49496.tar.gz
bcm5719-llvm-9a67245d881f4cf89fd8f897ae2cd0bccec49496.zip
[bpf] allow direct and indirect calls
kernel verifier is becoming smarter and soon will support direct and indirect function calls. Remove obsolete error from BPF backend. Make call to use PCRel_4 fixup. 'bpf to bpf' calls are distinguished from 'bpf to kernel' calls by insn->src_reg == BPF_PSEUDO_CALL == 1 which is used as relocation indicator similar to ld_imm64->src_reg == BPF_PSEUDO_MAP_FD == 1 The actual 'call' instruction remains the same for both 'bpf to kernel' and 'bpf to bpf' calls. Signed-off-by: Alexei Starovoitov <ast@kernel.org> llvm-svn: 318614
Diffstat (limited to 'clang/lib/Basic/Targets/Le64.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud