elflink.h (elf_gc_sections): Do not allow garbage
authorCatherine Moore <clm@redhat.com>
Mon, 5 Oct 1998 15:21:26 +0000 (15:21 +0000)
committerCatherine Moore <clm@redhat.com>
Mon, 5 Oct 1998 15:21:26 +0000 (15:21 +0000)
        collection if dynamic sections have been created.

: ----------------------------------------------------------------------

bfd/ChangeLog
bfd/elflink.h

index 7b4c61fac44dff504a8594046a82f19747e689c1..7ce5b2d57ccbbe49145a2e5efb74d87cf4bc689f 100644 (file)
@@ -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
index 2c38793b2d3c24ac6886db713359cfe9d6af13ed..79595be48b3a52446c13c59f3a2b495a0053a060 100644 (file)
@@ -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.  */