From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20093 invoked from network); 26 Mar 2000 17:41:11 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 26 Mar 2000 17:41:11 -0000 Received: from icarus.com (icarus.icarus.com [208.36.26.146]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA20693 for ; Sun, 26 Mar 2000 12:41:10 -0500 Received: from icarus.com (localhost [127.0.0.1]) by icarus.com (8.9.3/8.9.3) with ESMTP id JAA26392 for ; Sun, 26 Mar 2000 09:41:08 -0800 Message-Id: <200003261741.JAA26392@icarus.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: axp-list@redhat.com Subject: Alpha linker problems Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 26 Mar 2000 09:41:08 -0800 From: Stephen Williams I'm working on a Verilog compiler that generates C++ code. This generally works pretty well, but I'm having troubles with some larger Verilog source files. To wit: icarus.com % sh go.sh + ./ivl -P a.pf -N a.net -fVPI_MODULE_PATH=vpi -sm16x16 -Fcprop -Fnodangle -tvvm -ofoo.cc foo.vl + g++ -g -O -rdynamic -fno-exceptions -Ivvm -Ivpi -Lvvm foo.cc -lvvm -ldl /usr/bin/ld: /tmp/ccIBXz4j.o: .got subsegment exceeds 64K (size 138800) /usr/bin/ld: failed to set dynamic section sizes: No such file or directory collect2: ld returned 1 exit status I'm only having this problem on my alpha. People on Linux/ix86, Solaris etc. are not having these difficulties. I don't understand what the .got section is, why it is limited to 64K and why my code so thoroughly over- flows that section. This is a real impediment to using my alpha for this sort of thing, so I need to find a way to get past this. Real hardware simulations are real big, so I really need to find a way to cope. It has been suggested to me that reducing symbols helps, and I have done some of that, but the problem seems to have actually become *worse*. icarus.com % ld -v GNU ld version 2.9.1 (with BFD 2.9.1.0.24) icarus.com % g++ -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 % as -v GNU assembler version 2.9.1 (alpha-redhat-linux), using BFD version 2.9.1.0.24 -- 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."