2005-03-18 H.J. Lu <hongjiu.lu@intel.com>

* elflink.c (elf_mark_used_section): Check bfd_is_const_section
	for special sections.
This commit is contained in:
H.J. Lu 2005-03-18 15:46:25 +00:00
parent 41c7ba7cc2
commit 257a482034
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_mark_used_section): Check bfd_is_const_section
for special sections.
2005-03-18 Alan Modra <amodra@bigpond.net.au>
* elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete.

View file

@ -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;
}