This patch series introduces usage of relative long jumps and loads in order to lift 64/512k size limits on JITed BPF programs on s390. Patch 1 introduces long relative branches. Patch 2 changes the way literal pool is arranged in order to be compatible with long relative loads. Patch 3 changes the way literal pool base register is loaded for large programs. Patch 4 replaces regular loads with long relative loads where they are totally superior. Patch 5 introduces long relative loads as an alternative way to load constants in large programs. Regular loads are kept and still used for small programs. Patch 6 removes the size limit check. Ilya Leoshkevich (6): s390/bpf: use relative long branches s390/bpf: align literal pool entries s390/bpf: load literal pool register using larl s390/bpf: use lgrl instead of lg where possible s390/bpf: use lg(f)rl when long displacement cannot be used s390/bpf: remove JITed image size limitations arch/s390/net/bpf_jit_comp.c | 348 +++++++++++++++++++++++++++-------- 1 file changed, 268 insertions(+), 80 deletions(-) -- 2.23.0