The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cannot execute binary file bhag281 Shell Programming and Scripting 4 03-23-2009 06:38 AM
How to execute a binary file in solaris? agarwal SUN Solaris 4 10-17-2008 04:34 AM
cannot execute binary file durgaprasadr13 Linux 2 10-16-2008 10:29 AM
Crontab error Cannot execute binary file. raccsdl Shell Programming and Scripting 5 11-13-2007 06:22 AM
Can crontab execute binary files? Tris UNIX for Dummies Questions & Answers 5 12-07-2006 02:16 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-22-2009
niranjanvg niranjanvg is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 5
Exclamation Cannot Execute Binary

Hi,

I had changed my compiler options earlier so that it would compile and produce output for ARM but now i want to change it back so that i can get the executable for normal linux, I am facing problem, please help me out... it say
-bash: ./a.out: cannot execute binary file
When i had a look at the ELF it said


ELF Header:
Magic: 7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: ARM
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x82b4
Start of program headers: 52 (bytes into file)
Start of section headers: 10060 (bytes into file)
Flags: 0x2, has entry point, GNU EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 6
Size of section headers: 40 (bytes)
Number of section headers: 28
Section header string table index: 25


can someone help so that the files get compiled for linux
I am using fedora 9.
  #2 (permalink)  
Old 06-22-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,861
Given that we do not know what you changed to support cross-compiling to ARM, it is difficult to give precise information. Perhaps the easiest way would be to remove and re-install gcc using yum.

If you want to do it by hand, you probably need to remove the --target option from gcc configuration, and reinstall the correct bintools and GNU assembler for Fedora 9 and point to the correct crt0 unless you used newlib.
  #3 (permalink)  
Old 06-23-2009
niranjanvg niranjanvg is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 5
well thanks for the help i got the problem and corrected it. Well re installation was my last option.
Sponsored Links
Reply

Bookmarks

Tags
binay, executable, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0