OSDN Git Service

* ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
authoramodra <amodra>
Fri, 28 May 2004 05:42:28 +0000 (05:42 +0000)
committeramodra <amodra>
Fri, 28 May 2004 05:42:28 +0000 (05:42 +0000)
commit571e2ac2044d5c7e7320d4f8a677f8b6e5765497
tree2892f1a7315efe63f8f9cba5cbd5492d527e6d5a
parent877bc9e156e2d228e17e03465a7f8d3bcd321d52
* 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