Linkage directive Format .LINKAGE_PAIR name
1 – Parameter
name The name of the procedure descriptor, possibly defined in a different module of the routine to which linkage is required.
2 – Description
.LINKAGE_PAIR causes a linkage pair to be stored at the current location counter. A linkage pair consists of two quadwords. The first quadword is the code entry point of the routine indicated by the specified identifier. The second quadword is the address of the procedure descriptor of the routine indicated by the specified identifier. The second quadword is also called the procedure value. The specified name should reference a procedure descriptor that is either defined within the assembly unit or that becomes defined at the time the program is linked.
3 – Notes
o You can only use this directive within data or mixed psects (psects that have either the NOEXE or MIX attributes). o If automatic data alignment is enabled, this directive aligns the current location counter to an octaword (128-bit) boundary before allocating storage.
4 – Example
.LINKAGE_PAIR A ; Code address A followed by address of ; procedure descriptor A