1. SPARC Assembler for SunOS 5.x
3. Executable and Linking Format
3.2.2 Predefined User Sections
3.2.2.1 Creating an .init Section in an Object File
3.2.2.2 Creating a .fini Section in an Object File
3.2.3 Predefined Non-User Sections
3.8.1 Section Control Directives
3.8.2 Symbol Attribute Directives
3.8.4 Data Generating Directives
4. Converting Files to the New Format
B. Examples of Pseudo-Operations
C. Using the Assembler Command Line
A symbol table contains information to locate and relocate symbolic definitions and references. The SPARC assembler creates a symbol table section for the object file. It makes an entry in the symbol table for each symbol that is defined or referenced in the input file and is needed during linking. The symbol table is then used by the SPARC link editor during relocation. The section header contains the symbol table index for the first non-local symbol.
A symbol table contains the following information:
name
Index into the object file symbol string table. A value of zero indicates the symbol table entry has no name; otherwise, the value represents the string table index that gives the symbol name.
value
Value of the associated symbol. This value is dependent on the context; for example, it may be an address, or it may be an absolute value.
size
Size of symbol. A value of 0 indicates that the symbol has either no size or an unknown size.
info
Specifies the symbol type and binding attributes. Table 3-6 and Table 3-7 describe these values.
other
Undefined meaning. Current value is 0.
shndx
Contains the section header table index to another relevant section, if specified. As a section moves during relocation, references to the symbol will continue to point to the same location because the value of the symbol will change as well.
Table 3-6
|
Table 3-7 shows the symbol binding attributes.
Table 3-7
|