aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-01 01:11:27 +0000
committerAlan Modra <amodra@gmail.com>2005-02-01 01:11:27 +0000
commit77cfaee698fa7e54d8d7ff28f433fcfaeaf5acef (patch)
treeb003dfda8247b72ef7ccbc0c8b48e4048be8f6a7 /ld
parentc4db44a43fdfc8eab01846bcb89204002cde2de3 (diff)
downloadfsf-binutils-gdb-77cfaee698fa7e54d8d7ff28f433fcfaeaf5acef.zip
fsf-binutils-gdb-77cfaee698fa7e54d8d7ff28f433fcfaeaf5acef.tar.gz
fsf-binutils-gdb-77cfaee698fa7e54d8d7ff28f433fcfaeaf5acef.tar.bz2
include/
* bfdlink.h (bfd_link_repair_undef_list): Declare. bfd/ * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup.. * linker.c (bfd_link_repair_undef_list): ..to new function, but don't remove anything but new and undefweak. * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any existing _DYNAMIC. (_bfd_elf_create_dynamic_sections): Formatting. (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list. (_bfd_elf_merge_symbol): Don't handle as-needed syms here. (struct elf_smash_data): New. (elf_smash_syms): New function. (elf_link_add_object_symbols): Call elf_smash_syms. Don't add unneeded dynamic objects to loaded list. (elf_link_output_extsym): Don't handle as-needed here. Strip bfd_link_hash_new symbols. * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't delref when dynindx is already -1. * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new symbols. * elfxx-mips.c (mips_elf_output_extsym): Likewise. ld/ * ld.texinfo: Clarify --as-needed operation.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ld.texinfo5
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 324ccaa..b7206d5 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-01 Alan Modra <amodra@bigpond.net.au>
+
+ * ld.texinfo: Clarify --as-needed operation.
+
2005-01-31 Andrew Cagney <cagney@gnu.org>
* configure: Regenerate to track ../gettext.m4.
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 4511868..ba73f42 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -994,8 +994,9 @@ 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 reference from regular objects.
+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.
@option{--no-as-needed} restores the default behaviour.
@kindex --add-needed