This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA:] Ignore --gc-sections if non-ELF objects are involved
- From: Catherine Moore <clm at cygnus dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 25 Mar 2002 18:06:30 -0800
- Subject: Re: [RFA:] Ignore --gc-sections if non-ELF objects are involved
- Reply-to: clm at redhat dot com
H-P,
can_gc_sections should only be defined for a bfd-backends that are
elf. I don't understand why gc is called for aout tests. Where is
the segv occurring?
Catherine
: The test currently SEGV:s. It's better if GC just isn't
: performed, as happens if !get_elf_backend_data (abfd)->can_gc_sections
: or info->dynamic_sections_created.
:
: Ok to commit?
:
: bfd:
: * elflink.h (elf_gc_sections): Check that all input BFD:s are ELF.
:
: ld/testsuite:
: * ld-cris/aoutnondso-1.d, ld-cris/aout-1.d, ld-cris/expfnref1.s:
: New test.