From: Avinash Shenoy <axp@tifrbng.res.in>
Subject: Problem linking huge program
Date: Fri, 1 Aug 1997 09:38:25 +0530 (IST) [thread overview]
Message-ID: <199708010408.EAA04643@ns.tifrbng.res.in> (raw)
Hi, GCC gurus,
I would like to report the following problem with GCC on the alpha,
which manifests at link time when I go over some invisible internal limit
on the number/size of binaries to link together. There is no problem with the
code on the Pentium or 486 platforms, also running Linux.
Symptom: If I try to link too many binaries together (over about 12, totalling
about 3.7 Meg) I get a huge number of "relocation truncated to fit" messages.
Under this limit of 13 binaries, I can compile and run the code. If I add
a 13th library it fails to link. If I now remove a different library, so I
am back to 12 again, it compiles, links and runs.
I would greatly appreciate any hints on what to do to get my code to work on
this machine, which I specifically bought to run it.
This is what the end of my compile looks like:
....
cc sim/simlib.o sys/utillib.o ss/ss.o shell/shelllib.o buffer/buflib.o segment
/seglib.o hh/hhlib.o device/devlib.o out/outlib.o olf/olflib.o tools/toollib.o c
oncen/conclib.o user/userlib.o pore/porelib.o oldconn/axon/axonlib.o oldconn/syn
apse/synlib.o oldconn/personal/perlib.o oldconn/sim/simconnlib.o oldconn/tools/t
oolconnlib.o newconn/newconnlib.o nxloadlib.o -lfl -lm -o nxgenesis
shell/shelllib.o: In function `SetupInterp':
shell_setup.c(.text+0xba48): the `getwd' function is dangerous and should not be
used.
/usr/lib/crtend.o: In function `__do_global_ctors_aux':
../sysdeps/alpha/elf/crtend.S:73: relocation truncated to fit: LITERAL __CTOR_EN
D__
../sysdeps/alpha/elf/crtend.S:73: relocation truncated to fit: LITERAL __do_glob
al_ctors_aux
tools/toollib.o: In function `find_parmin':
parmin.c(.text+0x1df54): relocation truncated to fit: LITERAL $C55
parmin.c(.text+0x1dfd0): relocation truncated to fit: LITERAL $C54
parmin.c(.text+0x1dfd4): relocation truncated to fit: LITERAL range.39
parmin.c(.text+0x1dfd8): relocation truncated to fit: LITERAL center.40
....
System configuration:
Miata 433a, 64 Meg RAM
Red Hat Linux 4.1
Linux version 2.0.29
gcc 2.7.2.1
ld version 2.7 (with BFD 2.7.0.2)
Many thanks,
Avinash Shenoy
----------------------------------------------------------------------------
Avinash Shenoy
National Centre for Biological Sciences
TIFR Centre, IISc Campus,
Bangalore, India.
E-mail : avinash@ns.tifrbng.res.in
~
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-08-01 4:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-08-01 4:08 Avinash Shenoy [this message]
1997-08-01 11:13 ` Problem linking huge program Tom Browder
1997-08-01 16:01 ` Henry M. Pierce
[not found] <Pine.SUN.3.91.970801085934.25282B-100000@Boris.InfoMagic.COM>
1997-08-01 18:32 ` Tom Browder
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