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, which offers an older and less user-friendly interface than elfdump, although dump may be more appropriate for certain uses such as in shell scripts.
For a complete description of the displayed information, refer to the Linker and Libraries Guide .
The following options are supported:
Dump section header information.
Dump the contents of the .dynamic section.
Dump the elf header.
Dump the contents of the .got section.
Dump the contents of the .hash section.
Dump the contents of the .interp section.
Calculate the elf checksum (see gelf_checksum(3ELF)).
Dump the contents of the .note section.
% elfdump -s -N .dynsym filename
Dump the program headers.
Dump the contents of the relocation sections (that is, .rel[a]).
Dump the contents of the symbol table sections (that is, .dynsym and/or .symtab).
Dump the contents of the version sections (that is, .SUNW_version). If the -s option is also used, then the st_other entry reported for symbols from the .dynsym section will be their version index.
Write the contents of a specified section to the named file. This is useful for extracting an individual sections data for additional processing.
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|