mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
With CONFIG_PPC_KERNEL_PCREL enabled, calling bpf_check_timed_may_goto()
using a bl instruction results in a link-time failure:
arch/powerpc/net/bpf_timed_may_goto.o: in function `arch_bpf_timed_may_goto':
(.text+0x28): call to `bpf_check_timed_may_goto' lacks nop, can't restore toc
Use CFUNC() macro instead of direct 'bl' to properly annotate the call
to bpf_check_timed_may_goto(). On PCREL builds, CFUNC() expands to
'bl name@notoc', informing the linker that TOC restoration is not
needed, avoiding the "lacks nop, can't restore toc" linker error.
Fixes:
|
||
|---|---|---|
| .. | ||
| bpf_jit_comp.c | ||
| bpf_jit_comp32.c | ||
| bpf_jit_comp64.c | ||
| bpf_jit.h | ||
| bpf_timed_may_goto.S | ||
| Makefile | ||