|
Compiling for ARMv7 (Cortex-A8) in 6.5.0 with Floating Point
|
10/03/2011 2:51 PM
post89206
|
Compiling for ARMv7 (Cortex-A8) in 6.5.0 with Floating Point
I have read through the help document about building code for the Cortex-A8 in QNX, and have been mostly successful,
however I still have a small problem with getting code containing floating point operations to run properly.
The help document in the QNX IDE seemed to imply that all armv7le code was compiled using the VFP instructions with no
other libraries needed, such as the libm-vfb library that was needed in the older armle (v6) platform.
When I compile and run a section of code that has a floating point instruction I get this output at runtime: ldd:FATAL:
Unresolved symbol "__aeabi_ul2f" called from Executable
I've tried all the different -m options that I can think of with all the vfp settings to modify the compiled code, but
can't seem to get anything to work through this case. It seems that my binary is looking for a piece of code in an
external library, however, I don't know which library this could be.
The compile options I'm currently using are:
CFLAGS := -w9 -Wc,-Wall -fno-strict-aliasing -march=armv7-a -mtune=cortex-a8
CXXFLAGS := -w9 -Wc,-Wall -fno-strict-aliasing -march=armv7-a -mtune=cortex-a8
Are there any -mfpu options that would make this work correctly? I've tried all the ones I can find, but nothing
changes the error output I get when my binary runs that piece of code. This specific case looks like an unsigned long
to floating point value conversion.
Thanks for the help,
--john
|
|
|