diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ld.texinfo | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 6333383..13c05c6 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2009-01-31 Alan Modra <amodra@bigpond.net.au> + + * ld.texinfo (--as-needed): Update. + 2009-01-29 Andrew Jenner <andrew@codesourcery.com> * emultempl/armelf.em: Correct formatting of help text for diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 1d90989..ae8e2b7 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -1093,9 +1093,11 @@ This option affects ELF DT_NEEDED tags for dynamic libraries mentioned on the command line after the @option{--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. @option{--as-needed} 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. +needed. @option{--as-needed} causes a DT_NEEDED tag to only be emitted +for a library that satisfies a symbol reference from regular objects +which is undefined at the point that the library was linked, or, if +the library is not found in the DT_NEEDED lists of other libraries +linked up to that point, a reference from another dynamic library. @option{--no-as-needed} restores the default behaviour. @kindex --add-needed |