I just tried to bootstrap current gcc mainline on Solaris 11/SPARC, but the bootstrap failed linking the 32-bit libffi.so. This happens both with ld 2.19 and current CVS mainline:
% /vol/gcc/obj/binutils-2.19.50/ld/ld-new -V -G -dy -z text -Y P,/usr/ccs/lib:/usr/lib -rpath-link /usr/lib -Qy -o .libs/libffi.so.4.0.1 /vol/gccsrc/obj/gcc-4.4.0-20081110/11-gcc-gld/./gcc/crti.o /usr/ccs/lib/values-Xa.o /vol/gccsrc/obj/gcc-4.4.0-20081110/11-gcc-gld/./gcc/crtbegin.o -L/vol/gccsrc/obj/gcc-4.4.0-20081110/11-gcc-gld/./gcc -L/usr/ccs/lib src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/sparc/.libs/ffi.o src/sparc/.libs/v8.o src/sparc/.libs/v9.o -lc -soname libffi.so.4 -lgcc_s -lgcc_s /vol/gccsrc/obj/gcc-4.4.0-20081110/11-gcc-gld/./gcc/crtend.o /vol/gccsrc/obj/gcc-4.4.0-20081110/11-gcc-gld/./gcc/crtn.o GNU ld (GNU Binutils) 2.19.50.20081111 Supported emulations: elf32_sparc elf64_sparc src/sparc/.libs/v9.o: could not read symbols: Memory exhausted This object file only contains a .comment section: % objdump -h src/sparc/.libs/v9.o src/sparc/.libs/v9.o: file format elf32-sparc Sections: Idx Name Size VMA LMA File off Algn 0 .comment 0000003b 00000000 00000000 00000059 2**0 CONTENTS, READONLY I haven't yet tracked this down further, but I'm pretty sure I could bootstrap gcc with older GNU ld versions in the past, so this is most likely a regression. I tried to look for unusually large allocations via malloc with apptrace and truss -u, but found nothing of this sort. -- Summary: ld is unable to link 32 bit libffi.so on gcc mainline: Memory exhausted Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: ro at TechFak dot Uni-Bielefeld dot DE CC: bug-binutils at gnu dot org GCC build triplet: sparc-sun-solaris2.11 GCC host triplet: sparc-sun-solaris2.11 GCC target triplet: sparc-sun-solaris2.11 http://sourceware.org/bugzilla/show_bug.cgi?id=7023 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils