Section Attributes (OS/2, Windows)

Code and data sections on OS/2 and Windows NT platforms can have a number off attributes. The attributes control how the information stored in the section can be used at run time. The possible attributes are shown in the following table:

Attribute Description Type of Section
R Sets the READ attribute. code or data
W Sets the WRITE attribute. data only
X or E Sets the EXECUTE attribute. code only
S Sets the SHARED attribute. code or data
A Sets the 16:16 ALIAS attribute on OS/2 code or data
C Sets the CONFORMING attribute on OS/2. code only
D Sets the DISCARDABLE attribute on OS/2. ignored
I Sets the I/O PRIVILEGE attribute on OS/2. code or data
G Sets the RESIDENT and CONTIGUOUS attributes on OS/2. data
H Sets the RESIDENT and LONG-LOCKABLE attributes on OS/2 code or data
L Sets the RESIDENT attribute on OS/2 code or data

If WRITE is not set, SHARED is implied.

The OS/2 attributes A,C,D,I,G,H and L are useful in the special circumstances listed below, and are described in the operating system documentation. Attributes C and I are meaningful for code segments only.

By default, code sections have attributes "RX" and data sections have attributes "RW". You can set default attributes of all code sections with link(code, attributes) and of all data sections with link(data, attributes). You can also set the attributes of individual sections with link(section, name, attributes).



Sections and Segments


Set Build Options
Build