c++ - How to change arm version in arm-linux-gnueabi-gcc for cross compile -
i want cross-compile in eclipse
board armv7l
. got armv7l
via, uname -i
. installed arm cross compiler toolchain, using below commands.
$ sudo apt-get install emdebian-archive-keyring $ sudo apt-get install libc6-armel-cross libc6-dev-armel-cross $ sudo apt-get install binutils-arm-linux-gnueabi $ sudo apt-get install gcc-arm-linux-gnueabi $ sudo apt-get install g++-arm-linux-gnueabi $ sudo apt-get install u-boot-tools $ sudo apt-get install libncurses5-dev
i think have give option target board version.
first time tried put arm-linux-gnueabi-g++
in c/c++ build->settings->gcc c++ compiler
, gcc c++ linker
.(eclipse project properties)
next put -march=armv7
in miscellaneous
but not working. checked executable file readelf -a
, shows
tag_cpu_name: "7-a" tag_cpu_arch: v7 tag_cpu_arch_profile: application tag_arm_isa_use: yes tag_thumb_isa_use: thumb-2 tag_fp_arch: vfpv3-d16 tag_abi_pcs_wchar_t: 4 tag_abi_fp_denormal: needed tag_abi_fp_exceptions: needed tag_abi_fp_number_model: ieee 754 tag_abi_align_needed: 8-byte tag_abi_align_preserved: 8-byte, except leaf sp tag_abi_enum_size: int tag_abi_hardfp_use: sp , dp tag_cpu_unaligned_access: v6 tag_div_use: not allowed
what option have put target board ?