OSDN Git Service

* ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
authorAlan Modra <amodra@bigpond.net.au>
Fri, 28 May 2004 05:42:30 +0000 (05:42 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Fri, 28 May 2004 05:42:30 +0000 (05:42 +0000)
commit39572cb41bbfc86f3e3e94cce80c9569b45260d8
tree25b228ac98af7c7c75821e82b34313c0c7ccc876
parent0e6eafed1549bc22390fb1a518b546f98ccbc273
* ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
(output_section_callback): Nor SEC_KEEP here.
(gc_section_callback): Twiddle SEC_EXCLUDE here.
(lang_gc_wild): Delete.  Fold into..
(lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
collecting.
(lang_process): Always call lang_gc_sections.
(lang_place_orphans): Handle SEC_EXCLUDE sections.
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
SEC_EXCLUDE code.
ld/ChangeLog
ld/emultempl/elf32.em
ld/ldlang.c