mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-30 23:40:24 +00:00
* elflink.c (elf_gc_sweep): Don't specially keep non-alloc,
non-load sections if they have relocs.
This commit is contained in:
parent
74d8661a45
commit
dea5f36af5
@ -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 ...
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user