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]

Re: finding libraries from linker via $ORIGIN


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


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