* elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
commitf9c7af6d1c6f8e269f31e18b717fbc62213f1ac5
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 21 Apr 2004 07:14:15 +0000 (21 07:14 +0000)
committerEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 21 Apr 2004 07:14:15 +0000 (21 07:14 +0000)
treec7bb4d6a3d6a48bdaa1e47e1f52ca5f7a6667090
parentc85f736162ff17becc5ceb3e8a90409825e33c7c
* 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