Linux Standard Base Core Specification 4.0 | ||
---|---|---|
<<< Previous | Chapter 11. Object Format | Next >>> |
Various sections hold program and control information. Sections in the lists below are used by the system and have the indicated types and attributes.
The following sections are defined in the System V ABI and the System V ABI Update.
Table 11-3. ELF Special Sections
Name | Type | Attributes |
---|---|---|
.bss | SHT_NOBITS | SHF_ALLOC+SHF_WRITE |
.comment | SHT_PROGBITS | 0 |
.data | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.data1 | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.debug | SHT_PROGBITS | 0 |
.dynamic | SHT_DYNAMIC | SHF_ALLOC+SHF_WRITE |
.dynstr | SHT_STRTAB | SHF_ALLOC |
.dynsym | SHT_DYNSYM | SHF_ALLOC |
.fini | SHT_PROGBITS | SHF_ALLOC+SHF_EXECINSTR |
.fini_array | SHT_FINI_ARRAY | SHF_ALLOC+SHF_WRITE |
.hash | SHT_HASH | SHF_ALLOC |
.init | SHT_PROGBITS | SHF_ALLOC+SHF_EXECINSTR |
.init_array | SHT_INIT_ARRAY | SHF_ALLOC+SHF_WRITE |
.interp | SHT_PROGBITS | SHF_ALLOC |
.line | SHT_PROGBITS | 0 |
.note | SHT_NOTE | 0 |
.preinit_array | SHT_PREINIT_ARRAY | SHF_ALLOC+SHF_WRITE |
.rodata | SHT_PROGBITS | SHF_ALLOC+SHF_MERGE+SHF_STRINGS |
.rodata1 | SHT_PROGBITS | SHF_ALLOC+SHF_MERGE+SHF_STRINGS |
.shstrtab | SHT_STRTAB | 0 |
.strtab | SHT_STRTAB | SHF_ALLOC |
.symtab | SHT_SYMTAB | SHF_ALLOC |
.tbss | SHT_NOBITS | SHF_ALLOC+SHF_WRITE+SHF_TLS |
.tdata | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE+SHF_TLS |
.text | SHT_PROGBITS | SHF_ALLOC+SHF_EXECINSTR |
Object files in an LSB conforming application may also contain one or more of the additional special sections described below.
Table 11-4. Additional Special Sections
Name | Type | Attributes |
---|---|---|
.ctors | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.data.rel.ro | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.dtors | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.eh_frame | SHT_PROGBITS | SHF_ALLOC |
.eh_frame_hdr | SHT_PROGBITS | SHF_ALLOC |
.gcc_except_table | SHT_PROGBITS | SHF_ALLOC |
.gnu.version | SHT_GNU_versym | SHF_ALLOC |
.gnu.version_d | SHT_GNU_verdef | SHF_ALLOC |
.gnu.version_r | SHT_GNU_verneed | SHF_ALLOC |
.got.plt | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.jcr | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.note.ABI-tag | SHT_NOTE | SHF_ALLOC |
.stab | SHT_PROGBITS | 0 |
.stabstr | SHT_STRTAB | 0 |
.ctors | This section contains a list of global constructor function pointers. | |
.data.rel.ro | This section holds initialized data that contribute to the program's memory image. This section may be made read-only after relocations have been applied. | |
.dtors | This section contains a list of global destructor function pointers. | |
.eh_frame | This section contains information necessary for frame unwinding during exception handling. See Section 11.6.1. | |
.eh_frame_hdr | This section contains a pointer to the .eh_frame section which is accessible to the runtime support code of a C++ application. This section may also contain a binary search table which may be used by the runtime support code to more efficiently access records in the .eh_frame section. See Section 11.6.2. | |
.gcc_except_table | This section holds Language Specific Data. | |
.gnu.version | This section contains the Symbol Version Table. See Section 11.7.2. | |
.gnu.version_d | This section contains the Version Definitions. See Section 11.7.3. | |
.gnu.version_r | This section contains the Version Requirements. See Section 11.7.4. | |
.got.plt | This section holds the read-only portion of the GLobal Offset Table. This section may be made read-only after relocations have been applied. | |
.jcr | This section contains information necessary for registering compiled Java classes. The contents are compiler-specific and used by compiler initialization functions. | |
.note.ABI-tag | Specify ABI details. See Section 11.8. | |
.stab | This section contains debugging information. The contents are not specified as part of the LSB. | |
.stabstr | This section contains strings associated with the debugging infomation contained in the .stab section. |
<<< Previous | Home | Next >>> |
Sections | Up | Symbol Mapping |