* big C++ programs won't link?
@ 1999-11-28 6:00 Stephen Williams
1999-11-28 19:25 ` Greg Lindahl
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Williams @ 1999-11-28 6:00 UTC (permalink / raw)
To: axp-list
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."
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: big C++ programs won't link?
1999-11-28 6:00 big C++ programs won't link? Stephen Williams
@ 1999-11-28 19:25 ` Greg Lindahl
0 siblings, 0 replies; 2+ messages in thread
From: Greg Lindahl @ 1999-11-28 19:25 UTC (permalink / raw)
To: axp-list
> 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:
[...]
> /usr/bin/ld: /tmp/ccLUGdgi.o: .got subsegment exceeds 64K (size 137792)
Use the archive -- it's been discussed repeatedly.
-- g
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-11-28 19:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-28 6:00 big C++ programs won't link? Stephen Williams
1999-11-28 19:25 ` Greg Lindahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox