aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorCatherine Moore <clm@redhat.com>1998-10-05 15:21:26 +0000
committerCatherine Moore <clm@redhat.com>1998-10-05 15:21:26 +0000
commit6342b0623aebefe2d04720b5cb2d5b83520ce0f2 (patch)
tree9a225007c3ea84038fb702682b17ef1e6771a824 /bfd
parent64923bb9474b75d1e4ff34c0597d414ce160d051 (diff)
downloadgdb-6342b0623aebefe2d04720b5cb2d5b83520ce0f2.zip
gdb-6342b0623aebefe2d04720b5cb2d5b83520ce0f2.tar.gz
gdb-6342b0623aebefe2d04720b5cb2d5b83520ce0f2.tar.bz2
elflink.h (elf_gc_sections): Do not allow garbage
collection if dynamic sections have been created. : ----------------------------------------------------------------------
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7b4c61f..7ce5b2d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
+
+ * elflink.h (elf_gc_sections): Do not allow garbage
+ collection if dynamic sections have been created.
+
Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
* elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 2c38793..79595be 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -5682,7 +5682,8 @@ elf_gc_sections (abfd, info)
struct elf_link_hash_entry *h, Elf_Internal_Sym *));
if (!get_elf_backend_data (abfd)->can_gc_sections
- || info->relocateable)
+ || info->relocateable
+ || elf_hash_table (info)->dynamic_sections_created)
return true;
/* Apply transitive closure to the vtable entry usage info. */