bfd/
authorAlan Modra <amodra@gmail.com>
Fri, 19 Feb 2010 01:47:16 +0000 (01:47 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 19 Feb 2010 01:47:16 +0000 (01:47 +0000)
commitd0bf826b37bdeb1ad98dc2d601b450bd5b9043e5
tree6228351f86e84b5f27cf405eaa860fb830cc861a
parent220453ec97481311a3cfd0d1a191c1bfe24f3b53
bfd/
* elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
(_bfd_elf_copy_private_header_data): ..here.
* elflink.c (_bfd_elf_size_group_sections): New function.
(bfd_elf_size_dynamic_sections): Call it.
* elf-bfd.h (_bfd_elf_size_group_sections): Declare.
(_bfd_elf_fixup_group_sections): Declare.
ld/
* ldlang.c (unique_section_p): Add os param.  Allow group
sections to match /DISCARD/.  Update all callers.
* emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
(LDEMUL_BEFORE_ALLOCATION): Define.
ld/testsuite/
* ld-elf/group.ld: Discard .dropme sections.
* ld-elf/group10.d, * ld-elf/group10.s: New test.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c
bfd/elflink.c
ld/ChangeLog
ld/emultempl/genelf.em
ld/ldlang.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/group.ld
ld/testsuite/ld-elf/group10.d [new file with mode: 0644]
ld/testsuite/ld-elf/group10.s [new file with mode: 0644]