User's Manual
The elfdump command displays information contained in ELF format object files, archives, and
shared libraries. Use the following options to select the information you want to display:
Use the optionTo view
-tSymbol table entries.
-aArchive headers from an archive library.
-cString table(s).
-fFile header.
-gGlobal symbols from an archive.
-hSection headers.
-LThe .dynamic section in shared libraries and dynamically linked program files.
-oOptional headers (program headers).
-rRelocations
-sSection contents.
-UUnwind table.
-tvVersioned symbols.
The elfdump command provides the following additional options to modify your selections:
Causes elfdump toModifiesOption
Select output format in hexadecimal, octal, or decimal.all-H
Suppress title printing.all-p
Display headers in short format.-h,-o-S
Demangle C++ symbol names before displaying them.-c, -r, -s, -t-C
• With -H, ignored.
• With -n name, display the symbol whose unmangled name matches
name, and prints its symbol name as a demangled name.
Display the section whose index is num.-h, -s-D num
Display the sections in the range 1 to num2.
• With -D, display the sections in the range num to num2.
-h, -s+D num2
Display the relocation whose index is num.-r-D num
Display only the relocations which apply to the section(s) in the range.-r+D num2
Display the section specified by name.-c, -t+s name
Display information about the section specified by name.-h, -r, -s-n name
Display information about the symbol entry specified by name.-t-n name
Display the symbol whose index is num.-t-T num
Display the symbols in the range 0 to num2.
• With-T, display the symbols in the range num to num2.
-t+T num2
Viewing the Contents of an Object File with elfdump(1) 73