This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFC] Hide autogenerated symbols when linking shared libraries
- From: Yuri Gribov <tetra2005 at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sat, 28 Apr 2018 09:25:03 +0100
- Subject: [RFC] Hide autogenerated symbols when linking shared libraries
Hi all,
Currently default linker script generates several temporary symbols
which globally visible and unnecessarily increase size of dynamic
symtable:
$ gcc -shared -fPIC -O2 tmp.c -o tmp.so
$ readelf --dyn-syms -W tmp.so
...
7: 0000000000201020 0 NOTYPE GLOBAL DEFAULT 21 _edata
9: 0000000000201028 0 NOTYPE GLOBAL DEFAULT 22 _end
10: 0000000000201020 0 NOTYPE GLOBAL DEFAULT 22 __bss_start
Is this intentional?
-I