aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-01-31 11:44:38 +0000
committerAlan Modra <amodra@gmail.com>2009-01-31 11:44:38 +0000
commit010e5ae26efd7221bd797a2b6726eb671cb2528e (patch)
tree4f67226b3c29c107120006a9eb8678a9eaa6d568 /ld
parent5d27446dac0017fcbea7ad53ba0aa713575d0354 (diff)
downloadgdb-010e5ae26efd7221bd797a2b6726eb671cb2528e.zip
gdb-010e5ae26efd7221bd797a2b6726eb671cb2528e.tar.gz
gdb-010e5ae26efd7221bd797a2b6726eb671cb2528e.tar.bz2
binutils/
* NEWS: Mention --as-needed change. ld/ * ld.texinfo (--as-needed): Update. bfd/ * elflink.c (on_needed_list): New function. (elf_link_add_object_symbols): Link in --as-needed libs if they satisfy undefined symbols in other libs.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ld.texinfo8
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