Go to main content

SPARC Assembly Language Reference Manual

Exit Print View

Updated: October 2017

3.1 Assembler Directives

3.1.1 Section Control Directives

When a section is created, a section header is generated and entered in the ELF object file section header table. The section control pseudo-ops allow you to make entries in this table. Sections that can be manipulated with the section control directives are known as user sections. You can also use the section control directives to change the user section in which code or data is generated.

Note - The symbol table, relocation table, and string table sections are created implicitly. The section control pseudo-ops cannot be used to manipulate these sections.

The section control directives also create a section symbol which is associated with the location at the beginning of each created section. The section symbol has an offset value of zero.

3.1.2 Symbol Attribute Directives

The symbol attribute pseudo-ops declare the symbol type and size and whether it is local or global.

3.1.3 Assignment Directive

The assignment directive associates the value and type of expression with the symbol and creates a symbol table entry for the symbol. This directive constitutes a definition of the symbol and, therefore, must be the only definition of the symbol.

3.1.4 Data Generating Directives

The data generating directives are used for allocating storage and loading values.