Important: The information in this document is obsolete and should not be used for new development.
PEF Size Limits
The PEF structure has the following size limits:
In general, 32-bit integers (
- The total size of the container cannot be larger than 4 GB.
- The maximum offset allowed into the section name table is 2 GB.
- The total number of sections cannot exceed 65,535.
- The total number of instantiated sections (that is, those containing code or data) cannot exceed 32,767.
- The maximum size of the loader string table is 16 MB.
- The total number of imported symbols is limited to 2 26. However, the number of reexported imports is limited to 2 24.
- The number of exported symbols is limited to 2 18.
- A single hash chain cannot contain more than 16,384 entries.
UInt32
) are used to store size and count values in PEF containers, resulting in a maximum allowable integer of 2 32. In many cases, this is a theoretical rather than actual limit, since other PEF limitations may restrict the largest allowable value.Note that the Code Fragment Manager itself imposes limits that are not related to the PEF specification. For example, there is a length limit of 255 characters for imported and exported symbol names and a 63 character limit for imported library names. For specifics, check the current Code Fragment Manager documentation.
© Apple Computer, Inc.
11 MARCH 1997