Mark _init/_fini with .hidden?

Yuri Gribov tetra2005@gmail.com
Sat Apr 28 08:36:00 GMT 2018


Hi all,

I noticed that any shared library linked with gcc inherits two
publicly visible symbols _init/_fini. My understanding is that this
isn't needed (loader learns their addresses from dedicated entries in
.dynamic section) and just unnecessarily clutters dynamic symtables.
Can this be fixed?

Best regards,
Yury Gribov



More information about the Gcc-help mailing list