This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA:] Ignore --gc-sections if non-ELF objects are involved


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]