This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Compiled for big endian target is little endian ld error
Thank you Nick for getting back to me.
I tried that option and it complains about some FPA and FP.
Here is the output:
[root@localhost phy_ctrl]# arm-linux-gcc arm_obj/main.o
arm_obj/dm256_reg_defs.o -mbig-endian -mhard-float -o dm256_ctrll
/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
File in wrong format: failed to merge target specific data of file
/usr/local/arm-linux/lib/be/libc.so.6
/usr/local/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
ERROR: /usr/local/lib/gcc-lib/arm-linux/ 3.3.2/be/crtend.o 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/lib/gcc-lib/arm-linux/ 3.3.2/be/crtend.o uses
hardware FP, whereas dm256_ctrl uses software FP
File in wrong format: failed to merge target specific data of file
/usr/local/lib/gcc-lib/arm-linux/3.3.2/be/ crtend.o
/usr/local/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
ERROR: /usr/local/lib/gcc-lib/arm-linux/ 3.3.2/be/crtn.o 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/lib/gcc-lib/arm-linux/ 3.3.2/be/crtn.o uses hardware
FP, whereas dm256_ctrl uses software FP
File in wrong format: failed to merge target specific data of file
/usr/local/lib/gcc-lib/arm-linux/3.3.2/be/ crtn.o
collect2: ld returned 1 exit status
Thank you.
On 3/13/06, Nick Clifton <nickc@redhat.com> wrote:
> 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
>
>
>