We have done the test and listed below.
As suggest before, please check and raise such kind of questions to Yocto forum.
This topic is not the scope of i.mx forum.
ls -1
environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
hello.c
site-config-cortexa9hf-vfp-neon-poky-linux-gnueabi
sysroots
version-cortexa9hf-vfp-neon-poky-linux-gnueabi
source environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
$CC -static -o hello hello.c
file hello
hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=f05292a5baa8be157f5e5d4def47d650b0aad273, not stripped
To confirm the toolchian information:
arm-poky-linux-gnueabi-readelf -a hello|grep poky
46: 00000000 0 FILE LOCAL DEFAULT ABS /opt/poky/1.7/
53: 00000000 0 FILE LOCAL DEFAULT ABS /opt/poky/1.7/