This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Help with -march and -mcpu issues
- From: Daniel Jacobowitz <drow at false dot org>
- To: Rick Mann <rmann at latencyzero dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 30 Aug 2007 15:21:39 -0400
- Subject: Re: Help with -march and -mcpu issues
- References: <E90E5807-8555-4028-823D-1A9867408615@latencyzero.com> <46D62221.CD184D7@dessent.net> <31BB4D0F-872D-46CC-9230-79AD9B4F6B87@latencyzero.com>
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