diff options
author | Alexei Starovoitov <ast@kernel.org> | 2022-11-22 20:15:29 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-11-23 00:34:08 +0300 |
commit | dc79f035b2062e4ff4f6432eda18f461f82b1333 (patch) | |
tree | 4ab578497dc37992c6e531ab389ea507d37f4253 /kernel/profile.c | |
parent | 0b2971a2703c015b5737d66688c2c7c81a5e391b (diff) | |
download | linux-dc79f035b2062e4ff4f6432eda18f461f82b1333.tar.xz |
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/profile.c')
0 files changed, 0 insertions, 0 deletions