* ld: BRADDR error on alpha linux
@ 1999-03-05 5:00 dave
1999-03-06 5:00 ` Toon Moene
0 siblings, 1 reply; 3+ messages in thread
From: dave @ 1999-03-05 5:00 UTC (permalink / raw)
I'm hoping someone can help me with an error I get on an Alpha-linux box
for a program I am porting. I am using g77 0.5.23 to compile (gcc
2.8.1).
The program (a large one) ports successfully using this combination on
a Intel-linux box.
I had initial problems building gcc. It seems as though gcc created
a ".set noat" command in the assembly code and then issued several
commands (stb,ldbu,stw,ldwu) which resulted in gcc compiler errors like:
register $at required while noat in effect.
I changed an include file (config/alpha/elf.h) to stop putting out the
.set noat command. gcc then finished building, as did g77 and I
was able to compile and link small c and f77 programs.
I then began to compile and link my large program, about 300,000 lines
of
fortran and some smaller number of lines of C. All 2000
subroutines/functions
compiled successfully. However; when I tried to link, I got this error
message:
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/2.8.1/crtend.o(.init+0x0):
re location truncated to fit: BRADDR text
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/2.8.1/crtbegin.o(.fini+0x0
): relocation truncated to fit: BRADDR text
Does anyone have a clue what this means? It seems as though their
is a branch that, perhaps, is a longer jump then can be made. Perhaps
this is related to the alpha being a 64 bit machine and, maybe, the
program
needs to make a jump that is being represented by a 64 bit address and
the
loader can't handle it?
Any help, insight, pointers to more information would be greatly
appreciated. Maybe there's a better place to post this message...
David McNamara
dave@psrv.com
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ld: BRADDR error on alpha linux
1999-03-05 5:00 ld: BRADDR error on alpha linux dave
@ 1999-03-06 5:00 ` Toon Moene
0 siblings, 0 replies; 3+ messages in thread
From: Toon Moene @ 1999-03-06 5:00 UTC (permalink / raw)
dave@psrv.com wrote:
>
> I'm hoping someone can help me with an error I get on an Alpha-linux box
> for a program I am porting. I am using g77 0.5.23 to compile (gcc
> 2.8.1).
> The program (a large one) ports successfully using this combination on
> a Intel-linux box.
>
> I had initial problems building gcc. It seems as though gcc created
> a ".set noat" command in the assembly code and then issued several
> commands (stb,ldbu,stw,ldwu) which resulted in gcc compiler errors like:
> register $at required while noat in effect.
> I changed an include file (config/alpha/elf.h) to stop putting out the
> .set noat command. gcc then finished building, as did g77 and I
> was able to compile and link small c and f77 programs.
This is repaired in egcs (see http://egcs.cygnus.com - you want the
egcs-1.1.1 release).
> I then began to compile and link my large program, about 300,000 lines
> of
> fortran and some smaller number of lines of C. All 2000
> subroutines/functions
> compiled successfully. However; when I tried to link, I got this error
> message:
>
> /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/2.8.1/crtend.o(.init+0x0):
> re location truncated to fit: BRADDR text
> /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/2.8.1/crtbegin.o(.fini+0x0
> ): relocation truncated to fit: BRADDR text
This is a problem in an older version of the GNU binutils linker. Which
version are you using ? (this problem showed up on Red Hat 4.2, IIRC).
HTH,
--
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* ld: BRADDR error on Alpha linux
@ 1999-03-08 5:00 david_mcnamara
0 siblings, 0 replies; 3+ messages in thread
From: david_mcnamara @ 1999-03-08 5:00 UTC (permalink / raw)
I'm hoping someone can help me with an error I get on an Alpha-linux box
for a program I am porting. I am using g77 0.5.23 to compile (gcc
2.8.1).
The program (a large one) ports successfully using this combination on
a Intel-linux box.
I had initial problems building gcc. It seems as though gcc created
a ".set noat" command in the assembly code and then issued several
commands (stb,ldbu,stw,ldwu) which resulted in gcc compiler errors like:
register $at required while noat in effect.
I changed an include file (config/alpha/elf.h) to stop putting out the
.set noat command. gcc then finished building, as did g77 and I
was able to compile and link small c and f77 programs.
I then began to compile and link my large program, about 300,000 lines
of
fortran and some smaller number of lines of C. All 2000
subroutines/functions
compiled successfully. However; when I tried to link, I got this error
message:
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/2.8.1/crtend.o(.init+0x0):
re location truncated to fit: BRADDR text
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/2.8.1/crtbegin.o(.fini+0x0
): relocation truncated to fit: BRADDR text
Does anyone have a clue what this means? It seems as though their
is a branch that, perhaps, is a longer jump then can be made. Perhaps
this is related to the alpha being a 64 bit machine and, maybe, the
program
needs to make a jump that is being represented by a 64 bit address and
the
loader can't handle it?
Any help, insight, pointers to more information would be greatly
appreciated. Maybe there's a better place to post this message...
David McNamara
dave@psrv.com
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-03-08 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-08 5:00 ld: BRADDR error on Alpha linux david_mcnamara
-- strict thread matches above, loose matches on Subject: below --
1999-03-05 5:00 ld: BRADDR error on alpha linux dave
1999-03-06 5:00 ` Toon Moene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox