On 23 February 2013 04:47, Tien-Pao Shih tpshih@gmail.com wrote:
Hi,
I tried to generate a binary containing only ARM 32-bit ISA. The toolchain I used is gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux. The compilation options are -O3 -mcpu=Cortex-A15 -marm -static.
I could get 32-bit ARM ISA for my own C code, but not the C lib functions, such as strcpy. Is there a way to invoke 32-bit ARM ISA C library code?
gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux is prebuilt toolchain for cortex-a9 in THUMB mode. And the C library is from Ubuntu Precise distribution, which is also in THUMB mode.
If you have the ARM ISA C library (on your TARGET system), you can reuse it with "--sysroot" option. Otherwise, you have to rebuild it.
Thanks! -Zhenqiang