elfdump [-cCdegGhHiklmnprsuvy] [-N name] [-w file] filename...
The elfdump utility symbolically dumps selected parts of the specified object file(s). The options allow specific portions of the file to be displayed.
The elfdump utility is similar in function to the dump(1) utility. The dump utility offers an older and less user-friendly interface than elfdump, although dump might be more appropriate for certain uses such as in shell scripts.
Archive files, produced by ar(1), can also be inspected with elfdump. In this case, each object within the archive is processed using the options supplied.
For a complete description of the displayed information, refer to the Linker and Libraries Guide.
The following options are supported:
Dumps section header information.
Demangles C++ symbol names.
Dumps the contents of the .dynamic section.
Dumps the ELF header.
Dumps the contents of the .group section.
Dumps the contents of the .got section.
Dumps the contents of the .hash section.
Dumps the contents of the .SUNW_cap hardware and software capabilities section.
Dumps the contents of the .interp section.
Calculates the ELF checksum. See gelf_checksum(3ELF).
Displays long section names without truncation.
Dumps the contents of the .SUNW_move section.
Dumps the contents of the .note section.
Qualifies an option with a specific name. For example, in a file that contains more than one symbol table, the .dynsym table can be displayed using:
example% elfdump -s -N .dynsym filename
Dumps the program headers.
Dumps the contents of the .rel[a] relocation sections.
Dumps the contents of the .dynsym and .symtab symbol table sections. For archives, the archive symbol table is also dumped. Individual sections can be specified with the -N option. An archive symbol table can be specified using the special section name -N ARSYM.
In the case of core files, the shndx field will have the value “unknown” since the field does not contain the valid values.
In addition to the standard symbol table information, the version definition index of the symbol is also provided under the ver heading.
Dumps the contents of a frame unwind.
Dumps the contents of the .SUNW_version version sections.
Writes the contents of a section that is specified with the -N option, to the named file. For example, extracting the .text section of a file can be carried out with:
example% elfdump -w text.out -N .text filename
Dumps the contents of the .SUNW_syminfo section.
See attributes(5) for descriptions of the following attributes: