This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> > On Sat, 13 Mar 2004, kyy wrote: > > > > > > hi: > > > > I am trying to build a program for px262, so I add a option "-mcpu=xscale" just as below: > > > > > > > > >>arm-linux-gcc -mcpu=xscale main.c > > > > //main.c is a hellworld program, and I got some error information: > > > > > > > > /pub/arm/bin/arm-linux-ld: ERROR: /pub/arm/lib/gcc-lib/arm-linux/3.2.3/crtend.o uses FPA instructions, whereas a.out uses VFP instructions > > > > File format not recognized: failed to merge target specific data of file /pub/arm/lib/gcc-lib/arm-linux/3.2.3/crtend.o > > > > /pub/arm/bin/arm-linux-ld: ERROR: /pub/arm/lib/gcc-lib/arm-linux/3.2.3/../../../../arm-linux/lib/crtn.o uses FPA instructions, whereas a.out uses VFP instructions > > > > File format not recognized: failed to merge target specific data of file /pub/arm/lib/gcc-lib/arm-linux/3.2.3/../../../../arm-linux/lib/crtn.o > > > > collect2: ld returned 1 exit status > > > > > > > > anyone can tell me why? This is turning into a FAQ... It's the -mcpu=xscale flag, which is causing the assembler to assume you want a VFP-style environment. However, for Linux that's wrong (since the OS should be determining the platform ABI). If you don't already have them, then you need these two patches to gas: http://sources.redhat.com/ml/binutils/2003-06/msg00494.html http://sources.redhat.com/ml/binutils/2003-06/msg00497.html R. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |