赞
踩
Figure 7.3 shows the format of a typical ELF relocatable object file. The ELF header begins with a 16-byte sequence that describes the word size and byte ordering of the system that generated the file. The rest of the ELF header contains information that allows a linker to parse and interpret 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.
Sandwiched between the ELF header and the section header table are the sections themselves. A typical ELF relocatable object file contains the following sections:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。