e

elfdump(1)

elfdump(1)

 

(64-Bit Applications Only)

NAME

elfdump - dump information contained in object ®les

SYNOPSIS

elfdump [-acCfghHjkLopqrsStuUv][-D num ] [+D num2 ] [-n name ] [+s section ] [-T

num ] [+T num2 ] ®les...

DESCRIPTION

elfdump takes one or more object ®les 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

(Modi®er) Demangles C++ symbol names before printing them. This modi®er is valid with

 

-c, -r, -s, and -t. If speci®ed with -H, this modi®er is ignored. If speci®ed with -n

 

name, the symbol whose unmangled name matches name will be printed, and its symbol

 

name will be printed as a demangled name.

 

-D num

(Modi®er) Prints the section whose index is num.

 

+D num2

(Modi®er) 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 ®le header.

 

-g

Dumps global symbols from an archive.

 

-h

Dumps the section headers.

 

-H

(Modi®er) Dumps output information in hexadecimal, octal, or decimal format, with all

 

options.

 

-j

Prints the object dictionary for one or more executable ®les, if the source ®le was compiled

 

with +objdebug or linked with +tools. The object dictionary entry contains the name

 

of the object ®le that contributed to a particular section, the relative offset within the sec-

 

tion, size of the object ®le'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 ®les.

-nname

(Modi®er) Dumps information about the speci®ed section or symbol name. This option is

 

valid with -h, -r, -s, and -t. If used with -t, name pertains to a symbol name and

 

elfdump will only dump the symbol entry whose name matches name. If used with the

 

other options, name pertains to a section name and elfdump will only dump the section

 

whose name matches it.

 

-o

Dumps the optional headers (program headers).

 

-p

(Modi®er) Do not print titles, with all options.

 

-q

(Modi®er) Suppresss printing CTTI section headers. Valid with -koption.

-r

Dumps the relocations.

 

-s

Dumps the section contents.

 

+s name

(Modi®er) Dumps the section speci®ed by name. Valid with -cand -tonly.

-S

(Modi®er) Dumps output information in short format. Valid with the -hand -ooptions.

-t

Dumps the symbol table entries.

 

-T num

Prints the symbol whose index is num.

 

+T num2

(Modi®er) Prints the symbols in the range 0 to num2. If used with -T, print the symbols in

 

the range num to num2. Valid with -t.

 

-u

Prints the usage menu.

 

-U

Prints the unwind table.

 

Section 1202

− 1 −

HP-UX Release 11i: December 2000