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:
To view | Use the option |
Symbol table entries. | |
|
|
Archive headers from an archive library. | |
|
|
String table(s). | |
|
|
File header. | |
|
|
Global symbols from an archive. | |
|
|
Section headers. | |
|
|
The .dynamic section in shared libraries and dynamically linked program files. | |
|
|
Optional headers (program headers). | |
|
|
Relocations | |
|
|
Section contents. | |
|
|
Unwind table. | |
|
|
Versioned symbols. | |
|
|
The elfdump command provides the following additional options to modify your selections:
Option | Modifies | Causes elfdump to |
all | Select output format in hexadecimal, octal, or decimal. | |
|
|
|
all | Suppress title printing. | |
|
|
|
Display headers in short format. | ||
|
|
|
Demangle C++ symbol names before displaying them. | ||
|
| • With |
|
| • With |
|
| name, and prints its symbol name as a demangled name. |
|
|
|
Display the section whose index is num. | ||
|
|
|
+D num2 | Display the sections in the range 1 to num2. | |
|
| • With |
|
|
|
Display the relocation whose index is num. | ||
|
|
|
+D num2 | Display only the relocations which apply to the section(s) in the range. | |
|
|
|
+s name | Display the section specified by name. | |
|
|
|
Display information about the section specified by name. | ||
|
|
|
Display information about the symbol entry specified by name. | ||
|
|
|
Display the symbol whose index is num. | ||
|
|
|
+T num2 | Display the symbols in the range 0 to num2. | |
|
| • |
|
|
|
Viewing the Contents of an Object File with elfdump(1) | 73 |