From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,bfc185aa15001149 X-Google-Attributes: gid111c93,public From: Toon Moene Subject: Re: ld: BRADDR error on alpha linux Date: 1999/03/06 Message-ID: <36E11843.C775039E@moene.indiv.nluug.nl>#1/1 X-Deja-AN: 451867905 Content-Transfer-Encoding: 7bit References: <7bpgps$buj$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@nl.uu.net X-Trace: zonnetje.NL.net 920721704 18725 195.109.255.217 (6 Mar 1999 12:01:44 GMT) Organization: Moene Computational Physics, Maartensdijk, The Netherlands Mime-Version: 1.0 NNTP-Posting-Date: 6 Mar 1999 12:01:44 GMT Newsgroups: comp.os.linux.alpha 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