For i386-interix3 target (even in a cross configuration), ld segfaults at peigen.c line 2050, where h1->root.u.def.section is null. Has nobody tried this configuration?
Created attachment 162 [details] My change to avoid segfaults I made this change to avoid segfaults, while this configuration still does not link programs correctly.
Created attachment 169 [details] Test for initialised comdat field in coff section data structure before using it
Hi, Actually this appears to be a simple case of a test using the comdat field in the coff section data structure when that field has not been initialised. I am applying the attached patch to fix this problem. Cheers Nick bfd/ChangeLog 2004-08-18 Nick Clifton <nickc@redhat.com> PR 324 * cofflink.c (coff_link_add_symbols): Check that the comdat pointer in the coff_section_data structure has been initialised before using it.