112 Chapter 4
Linker Tools
Viewing the Contents of an Object File with elfdump(1)
Option Modifies Causes elfdump to
-H all Select output format in hexadecimal, octal, or decimal.
-p all Suppress title printing.
-S -h,-o Display headers in short format.
-C -c,-r,
-s,-t Demangle C++ symbol names before displaying them.
With -H, ignored.
With -n name, display the symbol whose unmangled name
matches name, and prints its symbol name as a demangled
name.
-D num -h,-s Display the section whose index is num.
+D num2 -h,-s Display the sections in the range 1 to num2.
With -D, display the sections in the rangenum to num2.
-D num -r Display the relocation whose index is num.
+D num2 -r Display only the relocations which apply to the section(s) in the
range.
+s name -c,-t Display the section specified by name.
-n name -h,-r,
-s Display information about the section specified by name.
-n name -t Display information about the symbol entry specified by name.
-T num -t Display the symbol whose index is num.
+T num2 -t Display the symbols in the range 0 to num2.
• With-T, display the symbols in the rangenum to num2.