End of module record

The format of a module end (END) record with an optional entry point request is as follows:

Table 1. End-of-module record, with optional entry point request
Field Offset Type Description
PTV 0-2 Byte(3) Type of record
X'034000'
If not continued
X'034100'
If continued
  3.0-5 Bit(6) Reserved.
Flags 3.6-7 Bit(2) Indicator flags, indicating presence or absence of a requested entry point:
B'00'
No entry point is suggested or requested on this END record. No subsequent fields on this record (other than the Record Count) are valid, and they cannot be used for any purpose.
B'01'
An entry point is requested by internal offset and ESDID on this END record. This ESDID can be either an EDID if the nominated entry point is known to be within this entry point. or an ERID if the nominated entry point is at an external symbol referenced in this input module. The Name Length field is zero. No continuation records are allowed.
B'10'
An entry point is requested by external name on this END record. The ESDID and Offset fields must be zero. Continuation records are allowed. Note that if an entry point is requested, the entry point name or class must be in namespace 1.
B'11'
Reserved.
AMODE 4 Byte(1) AMODE of requested entry point. See AMODE values in External symbol definition behavioral attributes.
  5-7 Byte(3) Reserved.
Record Count 8-11 Binary(4) Count of GOFF logical records in this object file, including HDR and END records. If no record count is provided, this field must contain binary zero.
ESDID 12-15 Binary(4) ESDID of the element containing the requested module internal entry point. If no entry point is requested, or if the entry point is requested by name, this field must be zero. If an ESDID is specified, the following Offset field is used.
  16-19 Binary(4) Reserved.
Offset 20-23 Binary(4) Translator-assigned offset (or address, for Assembler output) of the requested module internal entry point. If no entry point is requested, or if the entry point is requested by name, this field must be zero.
Note: Offset cannot be specified for external (ERID) entry point nominations.
Name Length 24-25 Binary(2) Total length of the external name. This length cannot be zero if a name is present. It must be zero if an entry point is requested by ESDID and Offset, or if no entry point is requested.
Entry Name 26-* Byte(n) The first n characters of the external name requested as the module entry point.
Trailer   Byte(m) Unused space at the end of a record is reserved, and cannot be used for any other purpose.