diff options
author | Alan Modra <amodra@gmail.com> | 2014-08-18 14:43:03 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-08-18 18:45:01 +0930 |
commit | 1240be6b7d0a5604c4e3efe12c9e1d08ebc246be (patch) | |
tree | a7f1bcd457894415ab539567c164dc1a93d09b1e /ld/ld.texinfo | |
parent | 759388538d1339f6a634b2777e24f46427dd9c96 (diff) | |
download | gdb-1240be6b7d0a5604c4e3efe12c9e1d08ebc246be.zip gdb-1240be6b7d0a5604c4e3efe12c9e1d08ebc246be.tar.gz gdb-1240be6b7d0a5604c4e3efe12c9e1d08ebc246be.tar.bz2 |
PR 17287, DT_NEEDED of unneeded libraries affects --as-needed
PR 17287
bfd/
* elflink.c (on_needed_list): Only consider libraries that have
been loaded.
ld/
* ld.texinfo (--as-needed): Clarify that references from libraries
must be from needed libraries.
ld/testsuite/
* ld-plugin/needed3.c: New file.
* ld-elf/shared.exp: Add needed3 test.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r-- | ld/ld.texinfo | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo index b559b4f..718a7d0 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -1179,8 +1179,8 @@ on the command line, regardless of whether the library is actually needed or not. @option{--as-needed} causes a DT_NEEDED tag to only be emitted for a library that @emph{at that point in the link} satisfies a non-weak undefined symbol reference from a regular object file or, if -the library is not found in the DT_NEEDED lists of other libraries, a -non-weak undefined symbol reference from another dynamic library. +the library is not found in the DT_NEEDED lists of other needed libraries, a +non-weak undefined symbol reference from another needed dynamic library. Object files or libraries appearing on the command line @emph{after} the library in question do not affect whether the library is seen as needed. This is similar to the rules for extraction of object files |