* elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.

This commit is contained in:
Alan Modra 2002-03-26 11:54:12 +00:00
parent 523ac3f9a3
commit b91afed73b
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2002-03-26 Alan Modra <amodra@bigpond.net.au>
* elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
2002-03-23 Alan Modra <amodra@bigpond.net.au>
* elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on

View File

@ -7570,12 +7570,16 @@ elf_gc_mark (info, sec, gc_mark_hook)
}
if (rsec && !rsec->gc_mark)
if (!elf_gc_mark (info, rsec, gc_mark_hook))
{
if (bfd_get_flavour (rsec->owner) != bfd_target_elf_flavour)
rsec->gc_mark = 1;
else if (!elf_gc_mark (info, rsec, gc_mark_hook))
{
ret = false;
goto out2;
}
}
}
out2:
if (!info->keep_memory)