JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
SPARC Assembly Language Reference Manual     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information


1.  SPARC Assembler for SunOS 5.x

2.  Assembler Syntax

3.  Executable and Linking Format

3.1 ELF Header

3.2 Sections

3.2.1 Section Header

3.2.2 Predefined User Sections Creating an .init Section in an Object File Creating a .fini Section in an Object File

3.2.3 Predefined Non-User Sections

3.3 Locations

3.4 Addresses

3.5 Relocation Tables

3.6 Symbol Tables

3.7 String Tables

3.8 Assembler Directives

3.8.1 Section Control Directives

3.8.2 Symbol Attribute Directives

3.8.3 Assignment Directive

3.8.4 Data Generating Directives

4.  Converting Files to the New Format

5.  Instruction-Set Mapping

A.  Pseudo-Operations

B.  Examples of Pseudo-Operations

C.  Using the Assembler Command Line

D.  An Example Language Program

E.  SPARC-V9 Instruction Set


3.8 Assembler Directives

Assembler directives, or pseudo-operations (pseudo-ops), are commands to the assembler that may or may not result in the generation of code. The different types of assembler directives are:

See Appendix A, Pseudo-Operations for a complete description of the pseudo-ops supported by the SPARC assembler.

3.8.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.8.2 Symbol Attribute Directives

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

3.8.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.8.4 Data Generating Directives

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