5.1.5.3 Section Directive Examples

The following show examples of the .section directive being used to specify sections for output.

.section foo                 ;foo is initialized data memory.
.section bar,bss,align(256)           ;bar is uninitialized data memory, aligned.
.section *,data,near                  ;section is near initialized data memory.
.section buf1,bss,address(0xa0000800) ;buf1 is uninitialized data memory at 0xa0000800.
.section *, code                      ;section is in program memory