5 in a static library called libvectora to create the

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rpret the object file. This includes the size of the ELF header, the object file type (e.g., relocatable, executable, or shared), the machine type (e.g., IA32) the file offset of the section header table, and the size and number of entries in the section header table. The locations and sizes of the various sections are described by the section header table, which contains a fixed sized entry for each section in the object file. ELF header .text .rodata .data .bss .symtab sections .rel.text .rel.data .debug .line describes object file sections .strtab Section header table 0 Figure 7.3: Typical ELF relocatable object file. Sandwiched between the ELF header and the section header table are the sections themselves. A typical ELF relocatable object file contains the following sections: .text: The machine code of the compiled program. .rodata: Read-only data such as the format strings in printf statements, and jump tables for switch statements (see Problem 7.14). .data: Initialized global C variables. Local C variables are maintained at run time on the stack, and do not...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online