PDA

View Full Version : Executing an ELF



abachler
01-20-2009, 03:06 PM
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.

Perspective
01-20-2009, 03:08 PM
>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.

matsp
01-20-2009, 03:09 PM
Yes, assuming the ELF-file is correctly formed and all shared library dependencies can be fulfilled.

--
Mats

brewbuck
01-20-2009, 03:14 PM
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.