diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 71119882c89..de6b496745a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-03-18 H.J. Lu + + * elflink.c (elf_mark_used_section): Remove check for special + sections. + 2005-03-18 Andreas Schwab * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn diff --git a/bfd/elflink.c b/bfd/elflink.c index 1ddfe182c61..277395a9b5b 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -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; }