This preview shows page 1. Sign up to view the full content.
Unformatted text preview: collection of ASCII text ﬁles, has been transformed into a single binary ﬁle that contains all of the information needed to load the program into memory and run it. Figure 7.11 summarizes the kinds of information in a typical ELF executable ﬁle.
0 maps contiguous file sections to runtime memory segments ELF header Segment header table .init .text .rodata .data .bss .symtab .debug .line describes object file sections .strtab Section header table symbol table and debugging info are not loaded into memory read/write memory segment (data segment) read-only memory segment (code segment) Figure 7.11: Typical ELF executable object ﬁle The format of an executable object ﬁle is similar to that of a relocatable object ﬁle. The ELF header describes the overall format of the ﬁle. It also includes the program’s entry point, which is the address of the ﬁrst instruction to execute when the program runs. The .text, .rodata, and .data sections are similar to those in a relocatable obj...
View Full Document
- Spring '10
- The American