From: amodra Date: Wed, 17 May 2006 00:36:30 +0000 (+0000) Subject: * elflink.c (elf_gc_sweep): Don't specially keep non-alloc, X-Git-Tag: pre-ptymaster-archetype~171 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2de59038729b7f4e4b78d0027d8b574de6370cc0;p=pf3gnuchains%2Fpf3gnuchains4x.git * elflink.c (elf_gc_sweep): Don't specially keep non-alloc, non-load sections if they have relocs. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fda25296d9..503d625fa1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-05-17 Alan Modra + + * elflink.c (elf_gc_sweep): Don't specially keep non-alloc, + non-load sections if they have relocs. + 2006-05-15 Paul Brook * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename ... diff --git a/bfd/elflink.c b/bfd/elflink.c index a1632cc3b1..338ee0610f 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -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)