Various sections hold program and control information. The sections listed in the following table are used by the system and have the types and attributes shown.
Name Type Attributes .glink SHT_PROGBITS SHF_ALLOC + SHF_EXECINSTR .got SHT_PROGBITS SHF_ALLOC + SHF_WRITE .toc SHT_PROGBITS SHF_ALLOC + SHF_WRITE .tocbss SHT_NOBITS SHF_ALLOC + SHF_WRITE .plt SHT_NOBITS SHF_ALLOC + SHF_WRITE
![]() | Note |
---|---|
The .plt section on the 64-bit PowerPC is of type SHT_NOBITS, not SHT_PROGBITS as on most other processors. |
Special sections are described below.
Name Description .glink This section may be used to hold the global linkage table which aids the procedure linkage table. See Procedure Linkage Table in Chapter 5 for more information. .got This section may be used to hold the Global Offset Table, or GOT. See The Toc Section and Coding Examples in Chapter 3 and Global Offset Table in Chapter 5 for more information. .toc This section may be used to hold the initialized Table of Contents, or TOC. See TOC, below, The Toc Section and Coding examples in Chapter 3 and Global Offset Table in Chapter 5 for more information. .tocbss This section may be used to hold the uninitialized portions of the TOC. This data may also be stored as zero-initialized data in a .toc section. .plt This section holds the procedure linkage table. See Procedure Linkage Table in Chapter 5 for more information.
![]() | Note |
---|---|
Ttools which support this ABI are not required to use these sections precisely as defined here, and indeed are not required to use them at all. The true use of a section is defined by the relocation information and by the code which refers to it. However, if tools use these sections, they are required to give them the types and attributes specified in the above table. |