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]

Re: A patch for elf32.em (Re: GNU/Linux vs. libtool --no-undefined)


On Tue, Feb 06, 2001 at 07:00:40PM -0800, Ian Lance Taylor wrote:
> 
> I'm no longer completely convinced that the linker ought to do that
> searching at all.  I think I put it in because either Thomas Bushnell
> or Roland McGrath asked for it, and I think Roland McGrath eventually
> decided that he didn't need it.  I don't think that Solaris does this
> sort of searching at all.

I like it for building executables. It can catch some conflicts due
to symbol versioning.

> 
> In any case, doing this searching for a shared library seems
> counterintuitive.
> 
> The original error appears to be warning about an undefined symbol
> reference from a shared library.  Is that so?  If it is, then I think
> the linker should be fixed to not warn about undefined references from
> shared libraries, even when --no-undefined is used.  We care whether
> each reference is satisfied somewhere.  I don't think we care whether
> each shared library included in the link has all symbols satisfied.
> Do we?
> 

I think the warning comes from building DSOs. It is the resulting
DSO who has undefine symbols.


-- 
H.J. Lu (hjl@valinux.com)

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