Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Problem linking huge program
@ 1997-08-01  4:08 Avinash Shenoy
  1997-08-01 11:13 ` Tom Browder
  1997-08-01 16:01 ` Henry M. Pierce
  0 siblings, 2 replies; 4+ messages in thread
From: Avinash Shenoy @ 1997-08-01  4:08 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem linking huge program
  1997-08-01  4:08 Problem linking huge program Avinash Shenoy
@ 1997-08-01 11:13 ` Tom Browder
  1997-08-01 16:01 ` Henry M. Pierce
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Browder @ 1997-08-01 11:13 UTC (permalink / raw)


I have had (and have reported) the same type problem.
Tech support at Microway is working with Jay Estabrook
and Richard Henderson to figure out how to fix it.

Hopefully we will have a fix soon.

Tom Browder
ASI Systems International

On Fri, 1 Aug 1997, Avinash Shenoy wrote:

> 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
> 
> 

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem linking huge program
  1997-08-01  4:08 Problem linking huge program Avinash Shenoy
  1997-08-01 11:13 ` Tom Browder
@ 1997-08-01 16:01 ` Henry M. Pierce
  1 sibling, 0 replies; 4+ messages in thread
From: Henry M. Pierce @ 1997-08-01 16:01 UTC (permalink / raw)


--
Henry M. Pierce
11950 N. Highway 89                               +1-520-526-9852 (PHONE)
Flagstaff, AZ  86004                              +1-520-526-9573   (FAX)

> 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:
>  ....
> 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
> ....
> Red Hat Linux 4.1 
> Linux version 2.0.29 

I had this problem as well.  It was "solved" by upgrading to RHS 4.2.

regards,
henry m. pierce

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem linking huge program
       [not found] <Pine.SUN.3.91.970801085934.25282B-100000@Boris.InfoMagic.COM>
@ 1997-08-01 18:32 ` Tom Browder
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Browder @ 1997-08-01 18:32 UTC (permalink / raw)


On Fri, 1 Aug 1997, Henry M. Pierce wrote:

> > 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.
> > am back to 12 again, it compiles, links and runs.
> > 
> > Red Hat Linux 4.1 
> > Linux version 2.0.29 
> 
> I had this problem as well.  It was "solved" by upgrading to RHS 4.2.
> 
> regards,
> henry m. pierce
> 

My new alpha is running RH 4.2 with Linux 2.0.30, and the problem still
exists--perhaps my program is larger (BRLCAD).

Tom Browder
ASI Systems International

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-08-01 18:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-08-01  4:08 Problem linking huge program Avinash Shenoy
1997-08-01 11:13 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox