]> 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>
Tue, 9 Dec 2025 13:02:28 +0000 (13:02 +0000)
commit93e77363ac0014fe3dbc29b2f0b346b5cea36bd7
tree77125c9d621874d2fe7feab63db2bc3e19e90ac2
parentceec9b1c7dab53c2d1b5745b5941692bb83a5f5e
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