From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2123 invoked from network); 28 Nov 1999 06:00:16 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 28 Nov 1999 06:00:16 -0000 Received: from icarus.com (root@icarus.icarus.com [208.36.26.146]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id BAA18263 for ; Sun, 28 Nov 1999 01:00:15 -0500 Received: from icarus.com (IDENT:steve@localhost [127.0.0.1]) by icarus.com (8.9.3/8.9.3) with ESMTP id WAA06400 for ; Sat, 27 Nov 1999 22:00:14 -0800 Message-Id: <199911280600.WAA06400@icarus.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: axp-list@redhat.com Subject: big C++ programs won't link? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 27 Nov 1999 22:00:13 -0800 From: Stephen Williams I have a *really*big* C++ file (machine generated) that won't link on Linux/alpha. It appears to work everywhere else, so it seems to be unique to the alpha: + g++ -O -rdynamic -fno-exceptions -Ivvm -Ivpi -Lvvm foo.cc -lvvm -ldl /usr/bin/ld: /tmp/ccLUGdgi.o: .got subsegment exceeds 64K (size 137792) /usr/bin/ld: failed to set dynamic section sizes: No such file or directory collect2: ld returned 1 exit status 52.3% CPU (Elapsed=20:18.82, sys=6.675, user=631.040) icarus.com % gcc -v Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) icarus.com % ld -v GNU ld version 2.9.1 (with BFD 2.9.1.0.24) icarus.com % rpm -q binutils binutils-2.9.1.0.23-7 (Yes, it really did take 20 minutes to compile, but I had another niced program running that may have taken some CPU away from the compiler.) What is the .got section and why is it limited to 64K? And most important, how can I adjust the code generator so that the problem goes away? Or can I change some compiler switches? FYI: foo.cc is generated by a Verilog compiler. The program is a gate level simulation of a combinational 16x16 multiplier. The Verilog source is 3028 lines, and the generated C++ file is 36549 lines. People have run the complete simulation on Linux/Intel systems (using the same Verilog and egcs) just fine. -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep."