title: How to change arm version in arm-linux-gnueabi-gcc for cross compile
body: <p>I want to cross-compile in <code>eclipse</code> for board <code>armv7l</code>.
  I got the <code>armv7l</code> via, <code>uname -i</code>.
  I installed ARM cross compiler toolchain, using below commands. </p>
  
  <pre><code>$ 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
  </code></pre>
  
  <p>I think I have to give an option for my target board version. </p>
  
  <p>First time I tried to put <code>arm-linux-gnueabi-g++</code> in <code>C/C++ Build-&gt;settings-&gt;GCC C++ Compiler</code> and <code>GCC C++ Linker</code>.(eclipse project properties)</p>
  
  <p>Next I put <code>-march=armv7</code> in <code>Miscellaneous</code> </p>
  
  <p>But it was not working. I checked the executable file with <code>readelf -A</code> 
  and it shows this </p>
  
  <pre><code>  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 and DP
    Tag_CPU_unaligned_access: v6
    Tag_DIV_use: Not allowed
  </code></pre>
  
  <p>What option I have to put for my target board ? </p>