elfdump.1 (2010 09)

e
elfdump(1) elfdump(1)
(ELF Applications Only)
NAME
elfdump - dump information contained in object files.
SYNOPSIS
elfdump [-acCdfghHjkLopqrsStuUvV
][-dc][-dl][-tx][-tv][-D num ][
+D num2 ]
[
+interp][+linkmap][
+linkmap_bss][+linkmap_file][-n
name ][+objdebug][+s
section ][-T num ][
+T num2 ] files...
DESCRIPTION
elfdump takes one or more object files or libraries and dumps information about them. The following
options are supported:
-a Dumps archive headers from an archive library.
-c Dumps the string table(s).
-C (Modifier) Demangles C++ symbol names before printing them. This modifier is valid
with -c, -r, -s, and
-t. If specified with -H, this modifier is ignored. If specified with
-n name, the symbol whose unmangled name matches name will be printed, and its sym-
bol name will be printed as a demangled name.
-d Prints the .note section which contains the compilation unit dictionary and linker foot-
print. This option has the same effect as
elfdump -dc -dl.
-dc Prints the compilation unit dictionary of the .notes section.
-dl Prints the linker footprint of the .notes section. The linker footprint has information on
the linker used to generate the file as well as the link time.
-D num (Modifier) Prints the section whose index is num.
+D num2 (Modifier) Prints the sections in the range 1 to num2. If used with
-D, the sections in the
range num to num2 are printed. Valid with
-h, -r,
-s. If used with -r, only the reloca-
tions which apply to the section(s) in the range are printed.
-f Dumps the file header (ELF header).
-g Dumps global symbols from an archive.
-h Dumps the section headers.
-H (Modifier) Dumps output information in hexadecimal, octal, or decimal format, with all
options.
+interp Displays the run-time interpreter path name for a.out (usually the location of the
dynamic loader and microloader). Only shared bound executables have this string. To
change the setting, use the ld +interp command.
-j Prints the object dictionary for one or more executable files, if the source file was com-
piled with the +objdebug option or linked with +tools (PA-RISC only) option. The
object dictionary entry contains the name of the object file that contributed to a particular
section, the relative offset within the section, size of the object file’s contribution, and
attributes of the entry.
-k Prints the CTTI section headers according to the directory member relationship.
-L Dumps the .dynamic section in shared libraries and dynamically linked program files.
+linkmap Prints the .linkmap section, which is only created when the incremental linker is used
(with the ld +ild command), or when the linker option +objdebug is used (which is
the default), along with the compiler option, -g (which is NOT the default).
+linkmap_bss
Prints the .linkmap_bss section, which is only created when the incremental linker is
used (with the ld +ild command), or when the linker option +objdebug is used
(which is the default), along with the compiler option, -g (which is NOT the default).
+linkmap_file
Prints the .linkmap_file section, which is only created when the incremental linker
is used (with the ld +ild command), or when the linker option +objdebug is used
(which is the default), along with the compiler option, -g (which is NOT the default).
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)