


objdump(1)            GNU Development Tools            objdump(1)



NAME
     objdump-display information from object files.


SYNOPSIS
     objdump
          [-a] [-b _b_f_d_n_a_m_e] [-d] [-f] [-h|+header] [-i]
          [-j _s_e_c_t_i_o_n] [-l] [-m _m_a_c_h_i_n_e] [-r|+reloc] [-s]
          [-t|+syms] [-x] _o_b_j_f_i_l_e_s...

DESCRIPTION
     objdump displays information about one or more object files.
     The  options control what particular information to display.
     This information is mostly useful  to  programmers  who  are
     working  on the compilation tools, as opposed to programmers
     who just want their program to compile and work.

OPTIONS
     Where long and short forms of an option are shown  together,
     they are equivalent.


     _o_b_j_f_i_l_e_s...
          The object files to be examined.  When you specify  ar-
          chives, objdump shows information on each of the member
          object files.


     -a   If any files from _o_b_j_f_i_l_e_s are  archives,  display  the
          archive  header information (in a format similar to `ls
          -l').  Besides the information you could list with  `ar
          tv',  `objdump -a' shows the object file format of each
          archive member.


     -b _b_f_d_n_a_m_e
           You can specify a particular  object-code  format  for
          your  object  files as _b_f_d_n_a_m_e.  This may not be neces-
          sary; _o_b_j_d_u_m_p can automatically recognize many formats.
          For example,

          objdump -b oasys -m vax -h fu.o


          Displays summary information from the  section  headers
          (`-h') of `fu.o', which is explicitly identified (`-m')
          as a Vax object file in the format  produced  by  Oasys
          compilers.  You can list the formats available with the
          `-i' option.


     -d   Disassemble.  Display the assembler mnemonics  for  the



cygnus support    Last change: 5 November 1991                  1






objdump(1)            GNU Development Tools            objdump(1)



          machine instructions from _o_b_j_f_i_l_e_s.


     -f   File header.   Display  summary  information  from  the
          overall header of each file in _o_b_j_f_i_l_e_s.


     -h

     +header
          Header.  Display summary information from  the  section
          headers of the object file.


     -i   Display a list showing  all  architectures  and  object
          formats available for specification with -b or -m.


     -j _n_a_m_e
           Display information only for section _n_a_m_e


     -l   Label the display (using  debugging  information)  with
          the  source  filename and line numbers corresponding to
          the object code shown.


     -m _m_a_c_h_i_n_e
           Specify the object files _o_b_j_f_i_l_e_s are for architecture
          _m_a_c_h_i_n_e.   You  can  list available architectures using
          the `-i' option.


     -r

     +reloc
          Relocation.  Print the relocation entries of the file.


     -s   Display the full contents of any sections requested.


     -t

     +syms
          Symbol Table.  Print the symbol table  entries  of  the
          file.   This  is similar to the information provided by
          the `nm' program.


     -x   Display all available header information, including the
          symbol  table  and  relocation  entries.  Using `-x' is



cygnus support    Last change: 5 November 1991                  2






objdump(1)            GNU Development Tools            objdump(1)



          equivalent to specifying all of `-a -f -h -r -t'.


SEE ALSO
     `binutils' entry in info; _T_h_e _G_N_U _B_i_n_a_r_y  _U_t_i_l_i_t_i_e_s,  Roland
     H. Pesch (October 1991); nm(1).


COPYING
     Copyright (c) 1991 Free Software Foundation, Inc.

     Permission is granted to make and distribute verbatim copies
     of  this  manual provided the copyright notice and this per-
     mission notice are preserved on all copies.

     Permission is granted to copy and distribute  modified  ver-
     sions of this manual under the conditions for verbatim copy-
     ing, provided that the entire resulting derived work is dis-
     tributed under the terms of a permission notice identical to
     this one.

     Permission is granted to copy and distribute translations of
     this  manual  into  another language, under the above condi-
     tions for modified versions, except that this permission no-
     tice  may  be  included in translations approved by the Free
     Software Foundation instead of in the original English.





























cygnus support    Last change: 5 November 1991                  3



