Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strip(1) — Interactive 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(1)

as(1)

cc(1)

ld(1)

tmpnam(3S)

a.out(4)

ar(4)

STRIP(1)



          STRIP(1)             INTERACTIVE UNIX System             STRIP(1)



          NAME
               strip - strip symbol and line number information from a com-
               mon object file

          SYNOPSIS
               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 nor-
               mally 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 scop-
                        ing 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(4)] the archive symbol table will be removed.  The
               archive symbol table must be restored by executing the ar(1)
               command with the s option before the archive can be link-
               edited by the ld(1) command. strip will produce appropriate
               warning messages when this situation arises.

               The strip command is used to reduce the file storage over-
               head taken by the object file.

          FILES
               TMPDIR/strp*          temporary files

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


          Rev. C Software Development Set                            Page 1





          STRIP(1)             INTERACTIVE UNIX System             STRIP(1)



               tmpnam(3S)].

          SEE ALSO
               ar(1), as(1), cc(1), ld(1), tmpnam(3S), a.out(4), ar(4).



















































          Rev. C Software Development Set                            Page 2





          STRIP(1)             INTERACTIVE UNIX System             STRIP(1)



          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 informa-
                                           tion cannot be stripped.












































          Rev. C Software Development Set                            Page 3



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