On 06/02/13 10:40, Swati Deshmukh wrote:
hi,
i am using linaro toolcahin binaries to execute simple .c file , so that it 
creates  ARM executable output file i can run on Linaro installed on Hackberry 
board.

this are the all steps i follwed from beginnng..
  please let me know if i am missing something here..

  1. i have downloaded gcc for ubuntu from this link 
https://launchpad.net/linaro-toolchain-binaries/+milestone/2012.04

2. on ubuntu, i did tar xjf 
gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux.tar.bz2 export 
ARM_CROSS_TOOLS=pwd/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-
 export ARMCC=${ARMEL_CROSS_TOOLS}gcc

& then

$ARMCC hello.c

     it created a.out (which is simple executable file and not ARM executable)

GCC's default output file name for any executable is a.out - no matter what format.

If you do execute the following this should show that the a.out you have is indeed an ARM executable:
 file a.out

The expected output will be something like:

a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped

To get GCC to give the output file a particular name you need to use the -o option to GCC.

Thanks,

Matt

--
Matthew Gretton-Dann
Toolchain Working Group, Linaro

_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to