>> For functions GCC generates a BTF_KIND_FUNC entry, which has no linkage >> information, or so we thought: I just looked at bpftool/btf.c and I >> found the linkage info for function types is expected to be encoded in >> the vlen field of BTF_KIND_FUNC entries (why not adding a btf_func >> instead???) which is surprising to say the least. >> >> We are changing GCC to encode the linkage info in vlen for these types. >> Thanks for reporting this. > > Patch sent to GCC upstream: > https://gcc.gnu.org/pipermail/gcc-patches/2022-July/598090.html FYI this is now applied in GCC master.