https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109558
Bug ID: 109558 Summary: bpf: support BTF and DWARF tag annotations for BPF Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jemarch at gcc dot gnu.org Target Milestone: --- There is a need to support: - Two new C-language-level attributes that allow to associate (to "tag") particular declarations and types with arbitrary strings. This is intended to be used to, for example, characterize certain pointer types in the kernel verifier. - The conveyance of that information in the DWARF output in the form of a new DIE: DW_TAG_(GNU|LLVM)_annotation. - The conveyance of that information in the BTF output in the form of two new kinds of BTF objects: BTF_KIND_DECL_TAG and BTF_KIND_TYPE_TAG. All of these facilities are being added to the eBPF ecosystem, and support for them exists in some form in LLVM. We have already discussed and agred on the details of what to support.