TOC-relative relocatable terms
A term is TOC-relative relocatable (E_TREL if it is a label contained within the TOC.
A term is TOC-relative relocatable (E_TREL) if it is a label contained within the TOC.
This type of term is relocatable since its value will change if the TOC is relocated.
A TOC-relative relocatable term is one of the following items:
- A label on a .tc pseudo-op
- A label defined within a csect that has TD or TC as its storage mapping class.
If this term is not used as a displacement for a D-form instruction, its value is its relocatable address, which is the sum of the offset relative to the TOC and the TOC anchor address. If it is used as a displacement for a D-form instruction, the assembler implicitly subtracts the TOC anchor address, so the offset relative to the TOC anchor is the displacement.