This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: How should the GNU linker treat weak references?
Alan Modra <amodra@bigpond.net.au> writes:
> Really? If this is so, then bfd/elflink.h is currently doing the wrong
> thing. See elflink.h:688 and elflink.h:747
I know.
> > All object files given at the ld command line are unconditionally used.
>
> I was assuming libfoo.so was specified on the command line in this case.
But libfoo.so is no object file. All what is done with it is to add
the DT_NEEDED entry and resolve symbols which are not resolved in any
of the .o files with it.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------