Developer's Topics
Chapter 7, Common Object File Format (COFF)

Flags

Flags

The lower 2 bytes of the flag field indicate a section type. The flags are described in Table 7-7, ``Section header flags''.



Table 7-7 Section header flags

 Mnemonic      Flag    Meaning
 ----------------------------------------------------
 STYP_REG       0x00   Regular section (allocated,
                       relocated, loaded)
 STYP_DSECT     0x01   Dummy section (not allocated,
                       relocated, not loaded)
 STYP_NOLOAD    0x02   Noload section (allocated,
                       relocated, not loaded)
 STYP_GROUP     0x04   Grouped section (formed from
                       input sections)
 STYP_PAD       0x08   Padding section (not
                       allocated, not relocated,
                       loaded)
 STYP_COPY      0x10   Copy section (for a decision
                       function used in updating
                       fields; not allocated, not
                       relocated, loaded, relocation
                       and line number entries
                       processed normally)
 STYP_TEXT      0x20   Section contains executable
                       text
 STYP_DATA      0x40   Section contains initialized
                       data
 STYP_BSS       0x80   Section contains only
                       uninitialized data
 STYP_INFO     0x200   Comment section (not
                       allocated, not relocated, not
                       loaded)
 STYP_OVER     0x400   Overlay section (relocated,
                       not allocated, not loaded)
 STYP_LIB      0x800   For .lib section (treated like
                       STYP_INFO)