| Syntax: | Default: |
| /SEC[TION]:name,attributes | Depends on section type |
/SECTION specifies the following memory-protection attributes for the name section (name is case sensitive):
| Letter | Sets Attribute |
| E or X | EXECUTE 2 |
| R | READ |
| S | SHARED |
| W | WRITE 1 |
| 16:16 ALIAS | |
| CONFORMING 2 | |
| DISCARDABLE | |
| I/O PRIVILEGE | |
| RESIDENT and CONTIGUOUS 1 | |
| RESIDENT and LONG-LOCKABLE | |
| RESIDENT |
For example,
/SEC:dseg1,RS
sets the READ and SHARED attributes, but not the EXECUTE, or WRITE attributes, for the section dseg1 in an .exe file.
Sections are assigned attributes by default, as follows:
| Segment | Default Attributes |
| Code sections | READ, EXECUTE (RX) |
| Data sections | READ, WRITE (RW), not shared |
| CONST32_RO section | READ, SHARED (RS) |