This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]