[PATCH] Implement a command line switch to prevent section GC from removing exported symbols
Alan Modra
amodra@gmail.com
Wed Dec 14 03:47:00 GMT 2016
On Wed, Dec 14, 2016 at 01:18:41AM +0100, fincs fincs wrote:
> Some people in the past have apparently encountered this problem too:
>
> http://osdir.com/ml/gcc.g++.general/2006-04/msg00025.html
This was someone not understanding how linking with archive libraries
works.
> https://lists.freedesktop.org/archives/systemd-devel/2014-November/025626.html
This was about a linker bug, since fixed.
> http://osdir.com/ml/gcc.g++.general/2006-04/msg00036.html
And this is another message in the same thread about archive
libraries.
> This seems like an inelegant and unmaintainable solution so I propose
> adding a command line switch to LD that
> enables the behaviour that already exists in shared object linking for
> any kind of ELF executable. Please see
> attached patch implementing my proposal.
Why doesn't --export-dynamic work for you?
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list