*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> elfdump (1)              
Title
Content
Arch
Section
 

Contents


 elfdump(1)                                                       elfdump(1)
                            ELF Applications Only



 NAME    [Toc]    [Back]
      elfdump - dump information contained in object files.

 SYNOPSIS    [Toc]    [Back]
      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    [Toc]    [Back]
      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 symbol name will
                     be printed as a demangled name.

      -d             Prints the .note section which contains the compilation
                     unit dictionary and linker footprint.  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 relocations 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.




 Hewlett-Packard Company            - 1 -      HP-UX 11i Version 2: Sep 2004






 elfdump(1)                                                       elfdump(1)
                            ELF Applications Only



      +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 compiled 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).

      -n name        (Modifier) Dumps information about the specified
                     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             (Modifier) Do not print titles, with all options.




 Hewlett-Packard Company            - 2 -      HP-UX 11i Version 2: Sep 2004






 elfdump(1)                                                       elfdump(1)
                            ELF Applications Only



      -q             (Modifier) Suppresses printing CTTI section headers.
                     Valid  with -k option.

      -r             Dumps the relocations.

      -s             Dumps the section contents.

      +objdebug      Dumps any section beginning with .objdebug_ as a string
                     table.

      +s name        (Modifier) Dumps the section specified by name.  Valid
                     with -c and -t only.

      -S             (Modifier) Dumps output information in short format.
                     Valid with the -h and -o options.

      -t             Dumps the symbol table entries.

      -tx            (Itanium-based systems) Dumps the value of st_shndx in
                     symbol table, in addition to information dump from -t
                     option.  This option is useful to verify the data
                     stored in the symbol table.

      -T num         Prints the symbol whose index is num.

      +T num2        (Modifier) 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.

      -tv            Prints versioned symbols.

      -u             Prints the usage menu.

      -U             Prints the unwind table.

      -v             (Modifier) Verifies the CTTI section headers before
                     printing.  Valid with the -k option.

      -V             Prints the version number for elfdump.

 EXAMPLES    [Toc]    [Back]
      To see the functions exported from a shared library:

           $ elfdump -s -n .dynsym libsubs.so | grep 'FUNC GLOB' | grep -v UNDEF

      To see the global data items exported from a shared library:

           $ elfdump -s -n .dynsym libsubs.so | grep 'OBJT GLOB' | grep -v UNDEF

      To display string table information (.strtab):




 Hewlett-Packard Company            - 3 -      HP-UX 11i Version 2: Sep 2004






 elfdump(1)                                                       elfdump(1)
                            ELF Applications Only



           $ elfdump -c subs.o

      To list the shared libraries linked with a program or shared library
      (dependent libraries):

           $ elfdump -L a.out | grep Needed
           $ chatr a.out            # shared library list

      To list the embedded path for shared libraries opened by a program:

           $ elfdump -L a.out | grep Rpath   # or
           $ elfdump -s -n .dynamic a.out | grep Rpath
           $ chatr a.out            # embedded path

 SEE ALSO    [Toc]    [Back]
    System Tools
      ld(1)             Invoke the link editor

    Miscellaneous    [Toc]    [Back]
      a.out(4)          Assembler, compiler, and linker output
      elf(3E)           Executable and Linking Format

    Texts and Tutorials    [Toc]    [Back]
      HP-UX Linker and Libraries Online User Guide
                        (See the +help option)
      HP-UX Linker and Libraries User's Guide
                        (See manuals(5) for ordering information)
      HP-UX Software Transition Toolkit (STK) -- ELF Object Formats
                        http://www.software.hp.com/STK/


 Hewlett-Packard Company            - 4 -      HP-UX 11i Version 2: Sep 2004
[ Back ]
      
      
 Similar pages
Name OS Title
odump HP-UX dump information contained in SOM object files
nm Tru64 Name list dump of object files
st_file_name Tru64 access information about the files in an object
st_file_sym_start Tru64 access information about the files in an object
st_file_proc_next Tru64 access information about the files in an object
st_file_proc_start Tru64 access information about the files in an object
objdump OpenBSD display information from object files.
st_file_proc_count Tru64 access information about the files in an object
st_file_lang Tru64 access information about the files in an object
objdump NetBSD display information from object files.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service