https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113225

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Cupertino Miranda <cuper...@gcc.gnu.org>:

https://gcc.gnu.org/g:dfc88fb51c1f9c26215adf6a308c18e23992cdd9

commit r14-7011-gdfc88fb51c1f9c26215adf6a308c18e23992cdd9
Author: Cupertino Miranda <cupertino.mira...@oracle.com>
Date:   Wed Jan 3 11:37:34 2024 +0000

    bpf: Correct BTF for kernel_helper attributed decls

    This patch fix a problem with kernel_helper attribute BTF information,
    which incorrectly generates BTF_KIND_FUNC entry.
    This BTF entry although accurate with traditional extern function
    declarations, once the function is attributed with kernel_helper, it is
    semantically incompatible of the kernel helpers in BPF infrastructure.

    gcc/ChangeLog:
            PR target/113225
            * btfout.cc (btf_collect_datasec): Skip creating BTF info for
            extern and kernel_helper attributed function decls.
    gcc/testsuite/ChangeLog:
            * gcc.target/bpf/attr-kernel-helper.c: New test.

Reply via email to