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: Compiled for big endian target is little endian ld error


Hi DSP,

When I used the -mbig-endian, I get a different error saying:

[root@localhost phy_ctrl]# arm-linux-gcc arm_obj/main.o
arm_obj/dm256_reg_defs.o  -mbig-endian -o dm256_ctrl
/usr/local/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
ERROR: /usr /local/arm-linux/lib/be/libc.so.6 uses FPA instructions,
whereas dm256_ctrl does  not

/usr/local/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
ERROR: /usr /local/arm-linux/lib/be/libc.so.6 uses hardware FP, whereas
dm256_ctrl uses software FP

Try compiling with both -mbig-endian and -mhard-float.


Cheers
  Nick



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