]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: link: improve BTF child dict naming
authorNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 20:06:46 +0000 (21:06 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 20:23:08 +0000 (21:23 +0100)
commit02bfc04f73232623a5a16722a79717035da3820c
tree3b69a9f54b5403c3817bd15a4a918194ce546054
parent3aacd0f9c00bdc425d306b5de05c65b78dad944a
libctf: link: improve BTF child dict naming

BTF dicts don't have a cuname, which means that when the deduplicator runs
over them any child dicts that result from conflicted types found in those
CUs end up with no name either.  Detect such unnamed dicts and propagate
in the name the linker gave them at input time instead.  (There is always
*some* such name, even if it's something totally useless like "#1"; usually
it's much more useful.)
libctf/ctf-link.c