Named local symbols in the ELF dynamic symbol table

Nick Clifton nickc@redhat.com
Thu Dec 8 13:19:41 GMT 2022


Hi Florian,

> Is there a way to get the same effect on other targets?

How are the loaders for other targets linked ?  If they include the
-X or --discard-locals option on the command line, then removing that
option might achieve the result that you desire.

> It would best
> if I wouldn't have to bloat the entire symbol table for that.

I don't think that you have symbol names without having entries in
the symbol table.  Although as you say, if they are local symbols
then they will not also take up room in the GNU_HASH table.

Cheers
   Nick




More information about the Binutils mailing list