LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   elf header for arm processor (https://www.linuxquestions.org/questions/linux-kernel-70/elf-header-for-arm-processor-4175542371/)

suresh peri 05-12-2015 09:15 AM

elf header for arm processor
 
Hi,
I am using arm-linux-gnueabihf-gcc cross compiler for building an application for arm cortex a9 board(spear1310)on windows host machine.It is an precompiled toolchain downloaded from the linaro website.
When i generate an .elf file OS/ABI flag value is coming as 0(zero).
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
As I am compiling for ARM OS/ABI flag value should come as 61 .
ELF Header:
Magic: 7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00

can anybody help me out.

Thanks in Advance

cyent 05-13-2015 04:10 PM

Here are the flags used by default for a "beaglebone like" openembedded build.... perhaps you need one of these flags...

arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8

suresh peri 05-18-2015 07:14 AM

Hi,

Thanks for the reply and sorry for the delayed response.

I tried the options which u given but still I am getting OS/ABI flag value as 00.


All times are GMT -5. The time now is 10:39 PM.