From: H.J. Lu Date: Fri, 18 Mar 2005 15:46:25 +0000 (+0000) Subject: 2005-03-18 H.J. Lu X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5a54e07d833dd3b5425762ceeeed38beef2b5116;p=pf3gnuchains%2Fpf3gnuchains3x.git 2005-03-18 H.J. Lu * elflink.c (elf_mark_used_section): Check bfd_is_const_section for special sections. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index dd8612d452..010c900351 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-03-18 H.J. Lu + + * elflink.c (elf_mark_used_section): Check bfd_is_const_section + for special sections. + 2005-03-18 Alan Modra * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete. diff --git a/bfd/elflink.c b/bfd/elflink.c index 0bb49ea1c8..1ddfe182c6 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -9012,7 +9012,9 @@ 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 && s->output_section != s) + if (s != NULL + && s->output_section != NULL + && !bfd_is_const_section (s->output_section)) s->output_section->flags |= SEC_KEEP; }