Section control directives
Syntax
ALIGN align [, value ]
ALIGNRAM align
ASEGN section [: type ] [: flag ] [, address ]
EVEN [ value ]
ODD [ value ]
RSEG section [: type ] [: flag ] [( align )]
SECTION section [: type ] [: flag ] [( align )]
SECTION_TYPE type-expr {, flags-expr }
Parameters
| Address where this section part is placed. |
| The power of two to which the address should be aligned.The default align value is 0, except for code sections where the default is 1. |
|
|
| |
| The name of the section. The section name is a user-defined symbol that follows the rules described in Symbols. |
| The memory type, which can be either |
| 4-byte value used for padding. The default is zero. |
| A constant expression that identifies the ELF type of the section. |
| A constant expression that identifies the ELF flags of the section. |
Description
The section directives control how code and data are located. For information about the restrictions that apply when using a directive in an expression, see Expression restrictions.
Directive | Description | Expression restrictions |
|---|---|---|
Aligns the program location counter by inserting . | No external references Absolute | |
Aligns the program location counter. | No external references Absolute | |
Begins a named absolute section. | No external references Absolute | |
Aligns the program counter to an even address. | No external references Absolute | |
Aligns the program counter to an odd address. | No external references Absolute | |
Begins an ELF section—alias to | No external references Absolute | |
Begins an ELF section. | No external references Absolute | |
Sets ELF type and flags for a section. |