Chapter 4 111
Linker Tools
Viewing the Contents of an Object File with elfdump(1)
Viewing the Contents of an Object File
with elfdump(1)
NOTE The elfdump command works on 64-bit executables or shared libraries.
The elfdump(1) 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:
elfdump provides the following additional options to modify your
selections:
To view the contents.
Use this
option
Symbol table entries. -t
Archive headers from an archive library. -a
String table(s). -c
File header. -f
Global symbols from an archive. -g
Section headers. -h
The .dynamic section in shared libraries and
dynamically linked program files.
-L
Optional headers (program headers). -o
Relocations. -r
Section contents. -s
Unwind table. -U