This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Mark _init/_fini with .hidden?
- From: Yuri Gribov <tetra2005 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 28 Apr 2018 09:35:59 +0100
- Subject: Mark _init/_fini with .hidden?
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