End of module record
The format of a module end (END
) record with an optional
entry point request is as follows:
| Field | Offset | Type | Description |
|---|---|---|---|
| PTV | 0-2 | Byte(3) | Type of record
|
| 3.0-5 | Bit(6) | Reserved. | |
| Flags | 3.6-7 | Bit(2) | Indicator flags, indicating presence or absence
of a requested entry point:
|
| 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. |