On Wed, Jun 29, 2005 at 10:54:01AM +0930, Alan Modra wrote:
I think we can do without it by marking sections
referenced from .eh_frame specially, and keeping them iff the associated
.text section is marked.
Committing mainline.
bfd/
* elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
.eh_frame specially..
(bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
Don't recheck sections we have already marked.
(elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
* section.c (struct bfd_section): Add gc_mark_from_eh.
(STD_SECTION): Adjust.
* ecoff.c (bfd_debug_section): Adjust.
* bfd-in2.h: Regenerate.
ld/
* scripttempl/elf.sc (.gcc_except_table): Don't KEEP.