@Bio_TICFSL
By command "arm-linux-gnueabi-gcc hello.c -o hello", I got exe "hello",
by s32g cross toolchain compiler, I got "hello_s32g_c",when i compile "hello_s32g_c", the print info is:
-- Check for working C compiler: /opt/fsl-auto/1.0/sysroots/x86_64-fslbsp-linux/usr/bin/aarch64-fsl-linux/aarch64-fsl-linux-gcc - skipped
-- Check for working CXX compiler: /opt/fsl-auto/1.0/sysroots/x86_64-fslbsp-linux/usr/bin/aarch64-fsl-linux/aarch64-fsl-linux-g++ - skipped
so, the s32g compiler is /opt/fsl-auto/1.0/sysroots/x86_64-fslbsp-linux/usr/bin/aarch64-fsl-linux/aarch64-fsl-linux-gcc/g++, is it right? if right, is it a special toolchain or common toolchain?
and the elf file info, you can refer to it:
$ ~/work_liht/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-readelf -a hello > hello_elf.txt
$ ~/work_liht/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-readelf -a hello_s32g_c > hello_s32g_c_elf.txt
in QEMU:
# ls
bin hello_s32g_blank_c lost+found
dev hello_s32g_c sbin
etc init usr
hello lib
hello_s32g linuxrc
/ # ./hello_s32g_c
-/bin/sh: ./hello_s32g_c: not found
/ # ./hello
HelloWorld!