Thread: Executing an ELF

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

    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.

  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
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    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, 01:12 AM
  2. Giving instruction to an executing C code
    By darkwalk in forum C Programming
    Replies: 2
    Last Post: 10-24-2006, 12:01 PM
  3. Replies: 40
    Last Post: 09-01-2006, 12: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