Executing an ELF

This is a discussion on Executing an ELF within the Linux Programming forums, part of the Platform Specific Boards category; Will linux directly execute ELF files or do I need to something more to them first. Sorry I dont have ...

  1. #1
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189

    Executing an ELF

    Will linux directly execute ELF files or do I need to something more to them first. Sorry I dont have a linux box handy or I'd just test it out.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >Executing an ELF

    jeez, that sounds a little harsh. They didn't choose to born as "little people", why can't we all just get along?


    >or do I need to something more to them first

    The file needs execute permissions.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Yes, assuming the ELF-file is correctly formed and all shared library dependencies can be fulfilled.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,270
    Quote Originally Posted by abachler View Post
    Will linux directly execute ELF files or do I need to something more to them first. Sorry I dont have a linux box handy or I'd just test it out.
    ELF is Linux's native object format.

    Of course, many platforms use ELF besides Linux. You'll have trouble running a SPARC ELF binary on an Intel Linux system.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. run windows exe
    By munna_dude in forum Linux Programming
    Replies: 3
    Last Post: 10-10-2007, 02:12 AM
  2. Giving instruction to an executing C code
    By darkwalk in forum C Programming
    Replies: 2
    Last Post: 10-24-2006, 01:01 PM
  3. Replies: 40
    Last Post: 09-01-2006, 01:09 AM
  4. Executing a program
    By trancedeejay in forum C Programming
    Replies: 7
    Last Post: 03-06-2006, 08:55 AM
  5. Elf and Linking
    By Pea in forum Linux Programming
    Replies: 0
    Last Post: 11-22-2005, 11:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21