Skip to content

Commit 70a201c

Browse files
Alexei Starovoitovthe80srobot
authored andcommitted
libbpf, selftests/bpf: Adjust libbpf, bpftool, selftests to match LLVM
The selftests use to tell LLVM about special pointers. For LLVM there is nothing "arena" about them. They are simply pointers in a different address space. Hence LLVM diff llvm/llvm-project#85161 renamed: . macro __BPF_FEATURE_ARENA_CAST -> __BPF_FEATURE_ADDR_SPACE_CAST . global variables in __attribute__((address_space(N))) are now placed in section named ".addr_space.N" instead of ".arena.N". Adjust libbpf, bpftool, and selftests to match LLVM. Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 653b472 commit 70a201c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libbpf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ struct bpf_struct_ops {
498498
#define KSYMS_SEC ".ksyms"
499499
#define STRUCT_OPS_SEC ".struct_ops"
500500
#define STRUCT_OPS_LINK_SEC ".struct_ops.link"
501-
#define ARENA_SEC ".arena.1"
501+
#define ARENA_SEC ".addr_space.1"
502502

503503
enum libbpf_map_type {
504504
LIBBPF_MAP_UNSPEC,

0 commit comments

Comments
 (0)