]> git.ipfire.org Git - thirdparty/gcc.git/commit
bpf: add tests for CO-RE and BTF tag interaction
authorDavid Faust <david.faust@oracle.com>
Mon, 28 Apr 2025 19:17:24 +0000 (12:17 -0700)
committerDavid Faust <david.faust@oracle.com>
Thu, 9 Oct 2025 21:13:24 +0000 (14:13 -0700)
commit4e1f9a0fbe52212663a6de7416d00bbe04d7d7cd
treec4594a570f28b2bcfa9087bd1f80564a7b53fd5a
parent8b5d75121dcb5b5d435c03d4d8af5d1ffc719e50
bpf: add tests for CO-RE and BTF tag interaction

Add a couple of tests to ensure that BTF type/decl tags do not interfere
with generation of BPF CO-RE relocations.

gcc/testsuite/
* gcc.target/bpf/core-btf-tag-1.c: New test.
* gcc.target/bpf/core-btf-tag-2.c: New test.
gcc/testsuite/gcc.target/bpf/core-btf-tag-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/bpf/core-btf-tag-2.c [new file with mode: 0644]