Skip Navigation Links | |
Exit Print View | |
SPARC Assembly Language Reference Manual Oracle Solaris 11.1 Information Library |
2. Executable and Linking Format
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
3. Directives and Pseudo-Operations
6. Writing Functions -- The SPARC ABI
7. Assembler Inline Functions and __asm Code
A. Using the Assembler Command Line
Solaris provides a number of command-line tools to display, analyze, and modify the functional components of object and executable files, such as the following:
elfdump — The elfdump utility symbolically dumps selected parts of the specified object file(s). The options allow specific portions of the file to be displayed.
dump — The dump utility dumps selected parts of each of its object file arguments, and is best suited for use in shell scripts, while the elfdump command is recommended for more human-readable output.
/usr/sfw/bin/greadelf — greadelf displays information about one or more ELF format object files. The options control what particular information to display.
mcs — The mcs command is used to manipulate a section in an ELF object file.
dis — The dis command produces an assembly language listing of an object file or an archive of object files. The listing includes assembly statements and an octal or hexadecimal representation of the binary that produced those statements.
/usr/sfw/bin/gobjdump — gobjdump displays information about one or more object files. The options control what particular information to display.