Object file relocation table entries of expressions
The assembler applies the rules when determining the requirements for object file relocation table entries for an expression.
The assembler applies the following rules when determining the requirements for object file relocation table entries for an expression.
- When an expression is used in a data definition, TOC entry definition,
or a branch target address, it may require from zero to two relocation
table entries (RLDs) depending on the resultant type of the expression.
- E_ABS requires zero relocation entries.
- E_REL requires one relocation entry, except that a dsect name or a dsect label does not require a relocation entry.
- E_EXT requires one relocation entry
- E_REXT requires two relocation entries
- E_TREL requires one relocation entry
- E_TOCOF requires one relocation entry
- When an expression is used as a displacement within a D-form instruction operand, only E_TREL and E_REXT expressions have relocation entries. They each require one relocation entry.