UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor gpats
Visitor
328 Views
Registered: ‎03-20-2018

Petalinux system library hardfp support

Hi,

I am using Petalinux 2015.4 on a Zynq Zedboard 7000. My system libraries are softfp compliant. Is there any way I can change petalinux to support these libraries for hardfp architechture? These are needed by an API.

 

readelf -h ld-2.21.so | grep Flags

 gives:

 

Flags: 0x5000202, Version5 EABI, soft-float ABI, <unknown>

 

this is causing an error while compiling a sample application for the API:

 

sudo arm-linux-gnueabi-g++ -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -march=armv7-a -mfloat-abi=hard -marm -mthumb-interwork -mtune=cortex-a9 -mfpu=neon -DEMBED -Dlinux -D__linux__ -Dunix -fPIC --sysroot=/media/gautam/rootfs/ xiSample.cpp -o xiSample -lm3api -pthread

 

/usr/lib/gcc-cross/arm-linux-gnueabi/5/../../../../arm-linux-gnueabi/bin/ld: error: xiSample uses VFP register arguments, /usr/lib/gcc-cross/arm-linux-gnueabi/5/crtbegin.o does not
/usr/lib/gcc-cross/arm-linux-gnueabi/5/../../../../arm-linux-gnueabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc-cross/arm-linux-gnueabi/5/crtbegin.o
/usr/lib/gcc-cross/arm-linux-gnueabi/5/../../../../arm-linux-gnueabi/bin/ld: error: xiSample uses VFP register arguments, /usr/lib/gcc-cross/arm-linux-gnueabi/5/crtend.o does not
/usr/lib/gcc-cross/arm-linux-gnueabi/5/../../../../arm-linux-gnueabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc-cross/arm-linux-gnueabi/5/crtend.o
collect2: error: ld returned 1 exit status

Thanks,

gPats

 

Tags (2)
0 Kudos