OSDN Git Service

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

bfd/ChangeLog
bfd/elflink.c

index 7111988..de6b496 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 1ddfe18..277395a 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;
     }