]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix BPF_JIT code to link with multiple TOCs
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 21 Jun 2012 17:50:27 +0000 (17:50 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 29 Jun 2012 04:35:34 +0000 (14:35 +1000)
commitf0f40a193ae27f32e2137ac74d5070df2ef03b1f
treeb59732165b8d4df0cf2f06a3091fdf8ecb76da7f
parentf890699d5c040bdc52901281822118c1a9999a03
powerpc: Fix BPF_JIT code to link with multiple TOCs

If the kernel is big enough (eg. allyesconfig), the linker may need to
switch TOCs when calling from the BPF JIT code out to the external
helpers (skb_copy_bits() & bpf_internal_load_pointer_neg_helper()).

In order to do that we need to leave space after the bl for the linker
to insert a reload of our TOC pointer.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/net/bpf_jit_64.S