From: Stephen Williams <steve@icarus.com>
To: axp-list@redhat.com
Subject: big C++ programs won't link?
Date: Sat, 27 Nov 1999 22:00:13 -0800 [thread overview]
Message-ID: <199911280600.WAA06400@icarus.com> (raw)
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."
next reply other threads:[~1999-11-28 6:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-28 6:00 Stephen Williams [this message]
1999-11-28 19:25 ` big C++ programs won't link? Greg Lindahl
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox