From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,9d4275a119476d2d,start X-Google-Attributes: gid111c93,public From: david_mcnamara@my-dejanews.com Subject: ld: BRADDR error on Alpha linux Date: 1999/03/08 Message-ID: <7c19ll$kp7$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 452663373 X-Http-Proxy: 1.0 x14.dejanews.com:80 (Squid/1.1.22) for client 204.7.44.3 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Mar 08 19:50:17 1999 GMT Newsgroups: comp.os.linux.alpha X-Http-User-Agent: Mozilla/4.5 [en] (Win95; U) 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