Fw: Does ld removes uncalled functions from final exe ?
Valery Pykhtin
pykhtin@prosoft.ural.ru
Tue Sep 7 08:49:00 GMT 2004
Hi Nick,
My platform is Pentium 4,
Red Hat Linux 9.0
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
GNU ld version 2.15
Linux run in VMWare under WinXP (I suppose there must be no difference).
As I understand to make -gc-sections option work I must turn on -Bstatic
option.
This works ! :)
Thank you for your patience,
Valery
> Hmm - what OS and execution environment are you using ? (I had assumed
> that you were using Linux).
> It is means that the sections needed for dynamic linking have been
> created. Dynmaic linking is linking that is performed when the
> executable is running, rather than at link time.
More information about the Binutils
mailing list