]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: exclude always-emitted Solaris symbols from the symtypetab
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 16 Jul 2025 15:55:51 +0000 (16:55 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 23 Jul 2025 12:06:14 +0000 (13:06 +0100)
commit4214ca9036c8f5d01025d0505ff1167700af5f98
tree0fd3e6cd26e0b0aaf923edf964d7a084ce986358
parent3ff8956e4bf46ffd638bf12ea4788a858e905023
libctf: exclude always-emitted Solaris symbols from the symtypetab

If we're skipping _BEGIN_ and _END_ we should certainly skip all the other
ABI-required always-emitted symbols given in ld/emultempl/solaris2*em as
well.  (This fixes a couple of diagnostics tests, but that's just because
the tests are quite sensitive to CTF section sizes, and introducing any
symtypetab entries for those tests perturbs those.)

Some of these are usually STT_NOTYPE, but not always: if programs already
emitted the symbol they might end up with any type, in particular
STT_OBJECT, and appear in the symtypetabs.

[nca: added commit log, added more symbols]

libctf/
PR libctf/33162
* ctf-serialize.c (ctf_symtab_skippable): Skip
more always-emitted Solaris symbols.
libctf/ctf-serialize.c