[RFA:] Ignore --gc-sections if non-ELF objects are involved
Catherine Moore
clm@cygnus.com
Mon Mar 25 18:06:00 GMT 2002
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.
More information about the Binutils
mailing list