Skip Navigation Links | |
Exit Print View | |
SPARC Assembly Language Reference Manual Oracle Solaris 11.1 Information Library |
2. Executable and Linking Format
3. Directives and Pseudo-Operations
3.3 Alphabetized Listing with Descriptions
3.5.1 Example 1: Binding to C Variables
3.5.2 Example 2: Generating Ident Strings
3.5.3 Example 3: Data Alignment, Size, Scope, and Type
3.5.4 Example 4: "Hello World"
6. Writing Functions -- The SPARC ABI
7. Assembler Inline Functions and __asm Code
A. Using the Assembler Command Line
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.
The symbol attribute pseudo-ops declare the symbol type and size and whether it is local or global.
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.
The data generating directives are used for allocating storage and loading values.