


strip(1)              GNU Development Tools              strip(1)



NAME
     strip-Discard symbols from object files.


SYNOPSIS
     strip
          [-s|+strip-all] [-g|-S|+strip-debug] [-x|+discard-all]
          [-X|+discard-locals] [-T _b_f_d_n_a_m_e] _o_b_j_f_i_l_e_s...

DESCRIPTION
     GNU  strip  will  discard  all  symbols  from  object  files
     _o_b_j_f_i_l_e_s,  if no options are specified; or only certain sym-
     bols, depending on its command-line options.

     strip will not execute unless at least one  object  file  is
     listed.

     _W_A_R_N_I_N_G: strip modifies the files  named  in  its  argument,
     rather than writing modified copies under different names.


OPTIONS
     The long and short forms of options, shown here as  alterna-
     tives, are equivalent.


     -s

     +strip-all
          This is the default case: strip all symbol entries from
          _o_b_j_f_i_l_e_s.


     -g

     -S

     +strip-debug
          Discard  only   debugging   symbol   information   from
          _o_b_j_f_i_l_e_s.


     -x

     +discard-all
          Discard all symbols local to  each  file  in  _o_b_j_f_i_l_e_s.
          _W_A_R_N_I_N_G:  Note  that  +discard-all  discards only _l_o_c_a_l
          symbols, in spite of its name.


     -X




cygnus support    Last change: 5 November 1991                  1






strip(1)              GNU Development Tools              strip(1)



     +discard-locals
          Discard local symbols starting with `L' from each  file
          in  _o_b_j_f_i_l_e_s.   (Some compilers produce internally-used
          symbols that begin with `L'.)


     -T _b_f_d_n_a_m_e
            You  can  specify  a  particular  object-code  format
          _b_f_d_n_a_m_e for _o_b_j_f_i_l_e_s.  This may not be necessary; _s_t_r_i_p
          can automatically recognize many formats.   for  infor-
          mation on listing available formats.

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


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                  2



