* elflink.c (elf_gc_sweep): Don't specially keep non-alloc,

non-load sections if they have relocs.
This commit is contained in:
Alan Modra 2006-05-17 00:36:30 +00:00
parent 74d8661a45
commit dea5f36af5
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-05-17 Alan Modra <amodra@bigpond.net.au>
* elflink.c (elf_gc_sweep): Don't specially keep non-alloc,
non-load sections if they have relocs.
2006-05-15 Paul Brook <paul@codesourcery.com>
* cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename ...

View File

@ -8965,7 +8965,7 @@ elf_gc_sweep (bfd *abfd, struct bfd_link_info *info)
{
/* Keep debug and special sections. */
if ((o->flags & (SEC_DEBUGGING | SEC_LINKER_CREATED)) != 0
|| (o->flags & (SEC_ALLOC | SEC_LOAD)) == 0)
|| (o->flags & (SEC_ALLOC | SEC_LOAD | SEC_RELOC)) == 0)
o->gc_mark = 1;
if (o->gc_mark)