ELF: Difference between revisions

8 bytes added ,  3 months ago
m
ELF executables do not strictly need sections, only an ELF header and a program header.
[unchecked revision][unchecked revision]
(make bases consistent in "Instruction Set Architectures" table)
m (ELF executables do not strictly need sections, only an ELF header and a program header.)
Line 9:
==File Structure==
 
ELF is a format for storing programs or fragments of programs on disk, created as a result of compiling and linking. An ELF file is usually divided into sections. For an executable program, these are the text section for the code, the data section for global variables and the rodata section that usually contains constant strings. The ELF file contains headers that describe how these sections should be stored in memory.
 
Note that depending on whether your file is a linkable or an executable file, the headers in the ELF file won't be the same:
Anonymous user