This is the mail archive of the binutils@sources.redhat.com 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: --as-needed handling of shared libraries that fail -Wl,-z,defs


On Thu, May 19, 2005 at 06:37:16PM +0200, Jakub Jelinek wrote:
> --as-needed doesn't seem to try satisfy undefined references in shared
> libraries:

No, as the ld doc says it "causes DT_NEEDED tags to only be emitted
for libraries that satisfy some symbol reference from regular objects
which is undefined at the point that the library was linked."

Note the "regular objects".  I'm not sure now why I wrote it that way.
It would be trivial to change, but I'd suggest using another option to
control behaviour.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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