Hi everyone,
This patches series includes fixes for bugs uncovered when executing bpf-next selftests. Looking forward to your comments. Regards, Cupertino Cupertino Miranda (3): bpf: make sure CO-RE relocs are never typed with a BTF_KIND_CONST bpf: calls do not promote attr access_index on lhs bpf: set index entry for a VAR_DECL in CO-RE relocs gcc/btfout.cc | 2 +- gcc/config/bpf/btfext-out.cc | 6 +++ gcc/config/bpf/core-builtins.cc | 6 ++- gcc/ctfc.h | 2 + .../gcc.target/bpf/core-attr-calls.c | 49 +++++++++++++++++++ .../gcc.target/bpf/core-attr-const.c | 32 ++++++++++++ gcc/testsuite/gcc.target/bpf/core-builtin-1.c | 16 +++--- gcc/testsuite/gcc.target/bpf/core-builtin-2.c | 3 +- .../gcc.target/bpf/core-builtin-exprlist-1.c | 16 +++--- 9 files changed, 113 insertions(+), 19 deletions(-) create mode 100644 gcc/testsuite/gcc.target/bpf/core-attr-calls.c create mode 100644 gcc/testsuite/gcc.target/bpf/core-attr-const.c -- 2.39.5