Help with -march and -mcpu issues
Daniel Jacobowitz
drow@false.org
Thu Aug 30 19:39:00 GMT 2007
On Thu, Aug 30, 2007 at 12:12:20PM -0700, Rick Mann wrote:
> The thing that bugs me, again, is that it's complaining about differences
> between the .o files and the thing it's linking the .o files into, which is
> made up only of those .o files!
No it isn't:
> $ arm-elf-gcc -march=armv5te -ffreestanding -nostdlib -std=c99 -Xlinker -e
> -Xlinker _start -Xlinker --script=link.lds -o h.elf start.o main.o -lgcc -lc
> -lm
You've got libraries in there too plus any startfiles that the
compiler or your link.lds add. Take a look at the
-Wl,-Map,mapfile.txt output file to see what else is being linked in.
You can use readelf -h to see the elf flags word for each object;
the linker error is complaining about EF_ARM_VFP_FLOAT. One of your
objects was compiled with a toolchain that expects FPA emulation.
--
Daniel Jacobowitz
CodeSourcery
More information about the Binutils
mailing list