LD Changes To Implicit DSO Linking Update

Adam Jackson ajax at redhat.com
Tue Feb 9 14:38:05 UTC 2010

On Tue, 2010-02-09 at 13:56 +0000, Richard W.M. Jones wrote:
> On Tue, Feb 09, 2010 at 06:55:11AM -0500, Neal Becker wrote:
> > Will there we a switch to give me the old behavior?  I might want this for 
> > my own legacy code.
> I have not tried it, but apparently --as-needed (or from gcc use
> -Wl,--as-needed):
>        --as-needed
>        --no-as-needed
>            This option affects ELF DT_NEEDED tags for dynamic libraries
>            mentioned on the command line after the --as-needed option.
>            Normally the linker will add a DT_NEEDED tag for each dynamic
>            library mentioned on the command line, regardless of whether the
>            library is actually needed or not.  --as-needed causes a DT_NEEDED
>            tag to only be emitted for a library that satisfies an undefined
>            symbol reference from a regular object file or, if the library is
>            not found in the DT_NEEDED lists of other libraries linked up to
>            that point, an undefined symbol reference from another dynamic
>            library.  --no-as-needed restores the default behaviour.

No, you mean --add-needed.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20100209/70795a41/attachment.bin 

More information about the devel mailing list