The special symbol toc

The .toc pseudo-op creates the TOC anchor entry.

Provisions have been made for the special symbol TOC. In XCOFF format modules, this symbol is reserved for the TOC anchor, or the first entry in the TOC. The symbol TOC has been predefined in the assembler so that the symbol TOC can be referred to if its use is required. The .toc pseudo-op creates the TOC anchor entry. For example, the following data declaration declares a word that contains the address of the beginning of the TOC:

.long TOC[TC0]

This symbol is undefined unless a .toc pseudo-op is contained within the assembler file.

For more information, see the .toc pseudo-op.