OSDN Git Service

bfd/
authorAlan Modra <amodra@bigpond.net.au>
Tue, 25 Jan 2005 01:40:04 +0000 (01:40 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Tue, 25 Jan 2005 01:40:04 +0000 (01:40 +0000)
commite86cc6a893680298e9eb305a91d9c52b26e9039a
treee50484896512376678f0fb4689531a54542c0980
parent890fe5c1bfdcaaf82b6b396eaf6965b802a76db6
bfd/
* elflink.c (elf_link_add_object_symbols): Don't create link dynamic
sections immediately when linking shared libs.  Instead, wait until
we know a lib is needed.
(_bfd_elf_link_create_dynstrtab): Extract from..
(_bfd_elf_link_create_dynamic_sections_): ..here.
(elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and
_bfd_elf_link_create_dynamic_sections.  Add abfd param.  Allow
for non-existent .dynamic.
(elf_link_output_extsym): Don't complain about undefined symbols
in as-needed dynamic libs that aren't actually linked.
ld/
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
(gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
only needed by an as-needed lib that didn't get linked.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/emultempl/elf32.em