diff options
author | Alan Modra <amodra@bigpond.net.au> | 2008-10-03 09:40:49 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2008-10-03 09:40:49 +0000 |
commit | 1d84fb38d23d21477ee14f3e072b049b0e13ba1f (patch) | |
tree | 8473262d2aaf08d282b8cc3a356291b5b429fb55 /ld/emultempl/spuelf.em | |
parent | 2cc94137b873aede3ba1d452f0a736b7ee2ecfd8 (diff) | |
download | binutils-redhat-1d84fb38d23d21477ee14f3e072b049b0e13ba1f.tar.gz |
bfd/
* elf.c (bfd_elf_set_group_contents): Assign sh_info for ld -r when
the signature symbol is global.
* elflink.c (elf_link_input_bfd): Ensure group signature symbol
is output when ld -r. Set group sh_info when local.
* linker.c (default_indirect_link_order): Handle group sections
specially.
ld/
* ldemul.c (ldemul_place_orphan): Add "name" param.
* ldemul.h (ldemul_place_orphan): Update prototype.
(struct ld_emulation_xfer_struct <place_orphan>): Likewise.
* ldlang.c (lang_place_orphans): Generate unique section names here..
* emultempl/elf32.em (place_orphan): ..rather than here. Don't
directly use an existing output section statement that has no
bfd section.
* emultempl/pe.em (place_orphan): Likewise.
* emultempl/pep.em (place_orphan): Likewise.
* emultempl/beos.em (place_orphan): Adjust.
* emultempl/spuelf.em (spu_place_special_section): Adjust
place_orphan call.
* emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
(LDEMUL_AFTER_OPEN): Define.
Diffstat (limited to 'ld/emultempl/spuelf.em')
-rw-r--r-- | ld/emultempl/spuelf.em | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em index 116a0cc985..bc2f6b548f 100644 --- a/ld/emultempl/spuelf.em +++ b/ld/emultempl/spuelf.em @@ -114,12 +114,7 @@ spu_place_special_section (asection *s, asection *o, const char *output_name) os = lang_output_section_find (o != NULL ? o->name : output_name); if (os == NULL) - { - const char *save = s->name; - s->name = output_name; - gld${EMULATION_NAME}_place_orphan (s); - s->name = save; - } + gld${EMULATION_NAME}_place_orphan (s, output_name); else if (o != NULL && os->children.head != NULL) { lang_statement_list_type add; |