manpages.info - online man pages   

SunOS man pages : elfdump (1)

User Commands                                          elfdump(1)

NAME

elfdump - dump selected parts of an object file

SYNOPSIS

elfdump [ -Ccdeihikmnprsv ] [ -N name ] [ -w file ] filename ...

DESCRIPTION

The elfdump utility symbolically dumps selected parts of the specified object file(s). The options allow specific por- tions 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 inter- face than elfdump, although dump may 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 pro- cessed using the options supplied. For a complete description of the displayed information, refer to the Linker and Libraries Guide.

OPTIONS

The following options are supported: - c Dumps section header information. -C Demangles C++ symbol names. -d Dumps the contents of the .dynamic section. -e Dumps the elf header. -G Dumps the contents of the .got section. -h Dumps the contents of the .hash section. -i Dumps the contents of the .interp section. -k Calculates the elf checksum (see gelf_checksum(3ELF)). -m Dumps the contents of the .SUNW_move section. -n Dumps the contents of the .note section. -N name 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: SunOS 5.8 Last change: 4 Dec 2000 1 User Commands elfdump(1) % elfdump -s -N .dynsym filename -p Dumps the program headers. -r Dumps the contents of the relocation sections (that is, .rel[a]). -s Dumps the contents of the symbol table sections (that is, .dynsym and/or .symtab) and, in the case of archives, dumps the archive symbol table. Individual sections can be specified with the -N option, or an archive symbol table can be specified using the spe- cial section name -N ARSYM. In addition to the standard symbol table information, the version definition index of the symbol is also provided under the ver heading. -v Dumps the contents of the version sections (that is, .SUNW_version). -w file Writes the contents of a section specified with the -N option to the named file. This is useful for extract- ing an individual section's data for additional pro- cessing. For example, extracting the .text section of a file can be carried out with: % elfdump -w text.out -N .text filename

OPERANDS

The following operand is supported: filename The name of the specified object file.

FILES

liblddbg.so linker debugging library

ATTRIBUTES

See attributes(5) for descriptions of the following attri- butes: SunOS 5.8 Last change: 4 Dec 2000 2 User Commands elfdump(1) ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | SUNWbtool | |_____________________________|_____________________________|

SEE ALSO

ar(1), dump(1), nm(1), pvs(1), elf(3ELF), attributes(5) Linker and Libraries Guide SunOS 5.8 Last change: 4 Dec 2000 3