5.1.5.2 Section Type Modifier Attributes

Attributes can be used to modify some sections, as indicated in the following table.

Table 5-2. Attributes that Modify Section Types
AttributeDescriptionApplicable Sections
codedatabsspersistramfunc
address(a)Locate at absolute address axxxx
nearLocate in the first 64k of memoryxxx
reverseAlign the ending address +1xxx
align(n)Align the starting addressxxxxx
noloadAllocate, do not loadxxxxx
keepKeep section against garbage collectionxxxxx

Attributes may be combined with others in some cases. The following table indicates which attributes are compatible with each other.

Table 5-3. Combining Attributes that Modify Section Types
addressnearreversealignnoloadkeep
addressxxxx
nearxxxxx
reversexxx
alignxxxx
noloadxxxxx
keepxxxxx