finding libraries from linker via $ORIGIN
Alan Modra
amodra@gmail.com
Thu Apr 11 06:06:00 GMT 2013
On Wed, Apr 10, 2013 at 06:31:28PM +0200, Oliver Kiddle wrote:
> It seems the bfd linker reads in all shared libraries from transitive
> library dependencies. When using --no-copy-dt-needed-entries this is
> surely fairly pointless?
Well, no, because as you found:
> it then fails because of symbols in ld-linux-x86-64.so.2 needed
> by libc.so.6.
It might be reasonable to omit loading DT_NEEDED libraries if both
--no-copy-dt-needed-entries *and* --allow-shlib-undefined is specified.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list