BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help

Executable and Linkable Format

Print-Friendly
About 3 pages (932 words)

Bookmark and Share Questions on this topic? Just ask!
ELF
File extension: none, .o, .so
Developed by: Unix System Laboratories
Type of format: Binary, executable, object, shared libraries, core dump

In computing, the Executable and Linking Format (ELF, formerly called Extensible Linking Format) is a common standard file format for executables, object code, shared libraries, and core dumps. First published in the System V Application Binary Interface specification,[1] and later in the Tool Interface Standard,[2] it was quickly accepted among different vendors of Unix systems. In 1999 it was chosen as the standard binary file format for Unix and Unix-like systems by the 86open project. Unlike many other proprietary executable file formats, ELF is flexible and extensible, and it is not bound to any particular processor or architecture. This has allowed it to be adopted by many different operating systems on many different platforms. Today the ELF format has replaced older executable formats such as a.out and COFF in many Unix-like operating systems such as: Linux, Solaris, IRIX, FreeBSD, NetBSD, OpenBSD, DragonFly BSD, and HP-UX (except for 32-bit PA-RISC programs which continue to use SOM). ELF has also seen some adoption in non-Unix operating systems, such as the Itanium version of OpenVMS, and BeOS Revision 4 and later for x86 based computers (where it replaced the Portable Executable format, the PowerPC version stayed with Preferred Executable Format). The PlayStation Portable, PlayStation 2, PlayStation 3 and GP2X consoles also use ELF and the Nintendo DS and Nintendo Gamecube consoles use ELF variants as their executable file format. AmigaOS 4.0 and MorphOS also running on PowerPC machines, use ELF. On Amiga platform the ELF executable has replaced the previous EHF (Extended Hunk Format) which was used on Amiga equipped with PPC processor expansion cards.

Contents

ELF file layout

An ELF file has two views: the program header shows the segments used at run-time, while the section header lists the set of sections of the binary.
An ELF file has two views: the program header shows the segments used at run-time, while the section header lists the set of sections of the binary.

Each ELF file is made up of one ELF header, followed by file data. The file data can include:

  • Program header table, describing zero or more segments
  • Section header table, describing zero or more sections
  • Data referred to by entries in the program or section header table

The segments contain information that is necessary for runtime execution of the file, while sections contain important data for linking and relocation. Each byte in the entire file is taken by no more than one section at a time, but there can be orphan bytes, which are not covered by a section. In the normal case of a Unix executable one or more sections are enclosed in one segment.

Tools

  • readelf is a Unix binary utility that displays information about one or more ELF files. A GPL implementation is provided by GNU Binutils.
  • elfdump is a Solaris command for viewing ELF information in an elf file.
  • objdump provides a wide range of information about ELF files and other object formats.

Specifications

See also

References

Further reading

External links

View More Summaries on Executable and Linkable Format
 
Ask any question on Executable and Linkable Format and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Executable and Linkable Format from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy