* elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 21 Apr 2004 07:14:15 +0000 (07:14 +0000)
committerEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 21 Apr 2004 07:14:15 +0000 (07:14 +0000)
commit715df9b8e05846e1e01e03ba01ff9877964331a3
treea1f63aabbb602c04567e7ec7c83c3f51577b1301
parent58434bc1b4c4db2fc376b7a705d1b6a89e8eadb8
* elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
(bfd_elf_gc_sections): Fail if a shared object is being created.
Do not fail if dynamic sections have been created.  Instead call
elf_gc_mark_dynamic_ref_symbol to mark sections that contain
dynamically referenced symbols.  Do not mark the whole graph
rooted at .eh_frame, only the section proper.
bfd/ChangeLog
bfd/elflink.c