2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Mar 2005 23:51:21 +0000 (23:51 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Mar 2005 23:51:21 +0000 (23:51 +0000)
* elflink.c (elf_mark_used_section): Remove check for special
sections.

bfd/ChangeLog
bfd/elflink.c

index 71119882c89671e29ad2961f95fe6cbc7d7e1ab2..de6b496745ab809e51f46e75df11dd3d729795d4 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elflink.c (elf_mark_used_section): Remove check for special
+       sections.
+
 2005-03-18  Andreas Schwab  <schwab@suse.de>
 
        * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn
index 1ddfe182c61615ed108a133444e4ae07a8f942dc..277395a9b5b9c1a6f2e66202ec3ca474cd5caf60 100644 (file)
@@ -9012,9 +9012,7 @@ elf_mark_used_section (struct elf_link_hash_entry *h,
       || h->root.type == bfd_link_hash_defweak)
     {
       asection *s = h->root.u.def.section;
-      if (s != NULL
-         && s->output_section != NULL
-         && !bfd_is_const_section (s->output_section))
+      if (s != NULL && s->output_section != NULL)
        s->output_section->flags |= SEC_KEEP;
     }