Assemble the following code into end of subsection numbered subsection in the COFF named section name. If you omit subsection, the assembler uses subsection number zero. ".section .text" is equivalent to the .text directive; ".section .data" is equivalent to the .data directive.
For COFF targets, the .section directive is used in one of the following ways:
If the optional argument is quoted, it is taken as flags to use for the section. Each flag is a single character. The following flags are recognized:
bss section (uninitialized data)
section is not loaded
writable section
data section
read-only section
executable section
For ELF targets, the .section directive is used in one of the following ways:
If the optional argument is quoted, it is taken as flags to use for the section. Each flag is a single character. The following flags are recognized:
allocate only
writable section
data section (same as >w)
read-only section
executable section
If no flags are specified, the default flags depend upon the section name. If the section name is not recognized, the default will be for the section to be loaded and writable.
If the optional argument to the .section directive is not quoted, it is taken as a subsegment number (see Section 5.3).