summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2022-11-22 09:15:29 -0800
committerAlexei Starovoitov <ast@kernel.org>2022-11-22 13:34:08 -0800
commitdc79f035b2062e4ff4f6432eda18f461f82b1333 (patch)
tree4ab578497dc37992c6e531ab389ea507d37f4253 /kernel
parent0b2971a2703c015b5737d66688c2c7c81a5e391b (diff)
selftests/bpf: Workaround for llvm nop-4 bug
Currently LLVM fails to recognize .data.* as data section and defaults to .text section. Later BPF backend tries to emit 4-byte NOP instruction which doesn't exist in BPF ISA and aborts. The fix for LLVM is pending: https://reviews.llvm.org/D138477 While waiting for the fix lets workaround the linked_list test case by using .bss.* prefix which is properly recognized by LLVM as BSS section. Fix libbpf to support .bss. prefix and adjust tests. Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions