LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-12-2015, 09:15 AM   #1
suresh peri
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
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
 
Old 05-13-2015, 04:10 PM   #2
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 398

Rep: Reputation: 87
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
 
1 members found this post helpful.
Old 05-18-2015, 07:14 AM   #3
suresh peri
LQ Newbie
 
Registered: May 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm confused again, Is an Arm processor the same as a MIPS processor? MrUmunhum Linux - Hardware 3 09-24-2009 04:47 AM
Invalid ELF header? Am I screwed? MythN00b Linux - Software 2 01-25-2008 05:52 AM
Transcode invalid ELF header DragonM15 Linux - Software 8 05-13-2007 10:09 PM
Wine: Invalid ELF Header stevesk Linux - Software 1 07-17-2006 09:50 PM
ELF header trouble great! :( Baran Linux - Newbie 14 09-17-2003 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration