include/
commita681948d33b5d98e9505cddd291c17141d53dce2
authorAlan Modra <amodra@bigpond.net.au>
Tue, 1 Feb 2005 01:11:27 +0000 (1 01:11 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Tue, 1 Feb 2005 01:11:27 +0000 (1 01:11 +0000)
treefa6923558190287d5e9cfe184c0cb04dac2fbb59
parentf7260ce4829b175a2f899914286092aee2b23f8c
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.
bfd/ChangeLog
bfd/elf32-cris.c
bfd/elf64-alpha.c
bfd/elf64-ppc.c
bfd/elflink.c
bfd/elfxx-mips.c
bfd/linker.c
include/ChangeLog
include/bfdlink.h
ld/ChangeLog
ld/ld.texinfo