Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strip(CP) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought

     Name
          strip - strip symbol and line number information from a
          common object file

     Syntax
          strip [-l] [-x] [-b] [-r] [-V] filename ...

     Description
          The strip command strips the symbol table and line number
          information from common object files, including archives.
          Once this has been done, no symbolic debugging access will
          be available for that file; therefore, this command is
          normally run only on production modules that have been
          debugged and tested.

          The amount of information stripped from the symbol table can
          be controlled by using any of the following  options:

          -l       Strip line number information only; do not strip
                   any symbol table information.

          -x       Do not strip static or external symbol information.

          -b       Same as the -x option, but also do not strip
                   scoping information (e.g., beginning and end of
                   block delimiters).

          -r       Do not strip static or external symbol information,
                   or relocation information.

          -V       Print the version of the strip command executing on
                   the standard error output.

          If there are any relocation entries in the object file and
          any symbol table information is to be stripped, strip will
          complain and terminate without stripping filename unless the
          -r option is used.

          If the strip command is executed on a common archive file
          (see ar(F)) the archive symbol table will be removed.  The
          archive symbol table must be restored by executing the
          ar(CP) command with the s option before the archive can be
          link-edited by the ld(CP) command. strip will produce
          appropriate warning messages when this situation arises.

          The strip command is used to reduce the file storage
          overhead taken by the object file.

     Notes
          If you are using XENIX binaries, please refer to the manual
          entry for this utility in the XENIX Development Guide for
          information on the appropriate usage with XENIX binaries.

     Files
          TMPDIR/strp*        temporary files

                              TMPDIR is usually /usr/tmp but can be
                              redefined by setting the environment
                              variable TMPDIR (see tempnam() in
                              tmpnam(S)).

     See Also
          ar(CP), as(CP), cc(CP), ld(CP), tmpnam(S), a.out(F), ar(F)

     Diagnostics
          strip:  name:  cannot open
                                      if name cannot be read.

          strip:  name:  bad magic
                                      if name is not an appropriate
                                      common object file.

          strip:  name:  relocation entries present; cannot strip
                                      if name contains relocation
                                      entries and the -r flag is not
                                      used, the symbol table
                                      information cannot be stripped.

     Standards Conformance
          strip is conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          and The X/Open Portability Guide II of January 1987.

                                                (printed 6/18/89)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026