JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
SPARC Assembly Language Reference Manual     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  SPARC Assembler Syntax

2.  Executable and Linking Format

2.1 Sections

2.1.1 Section Header

2.1.2 Predefined User Sections

2.1.2.1 Creating an .init Section in an Object File

2.1.2.2 Creating a .fini Section in an Object File

2.1.3 Predefined Non-User Sections

2.1.4 Symbol Tables

2.1.5 String Tables

2.2 Locations

2.3 Addresses

2.3.1 Relocation Tables

2.4 Tools

3.  Directives and Pseudo-Operations

4.  Creating Data in Assembler

5.  SPARC Code Models

6.  Writing Functions -- The SPARC ABI

7.  Assembler Inline Functions and __asm Code

A.  Using the Assembler Command Line

B.  A Sample Assembler Program

C.  SPARC Instruction Sets and Mnemonics

Index

Chapter 2

Executable and Linking Format

The object files created by the Oracle Solaris SPARC assembler are Executable and Linking Format (ELF) files. These relocatable ELF files hold code and data suitable for linking with other object files to create an executable or a shared object file, and are the assembler normal output. The assembler can also write information to standard output (for example, under the -S option) and to standard error (for example, under the -V option). The SPARC assembler creates a default output file when standard input or multiple files are used.

The ELF object file format consists various component features, including:

This chapter is just a summary of the ELF features. For complete details on the ELF format, see Chapter 12, Object File Format, in Oracle Solaris 11.1 Linkers and Libraries Guide.