This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with -march and -mcpu issues


> > 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.

I'll note that's it's fairly common for older toolchains to be incorrectly 
configured, and produce bogus markings by default.
This should not be a problem on EABI targets where we have proper object 
attributes, and corresponding assembly directives.

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]