STRIP(1) (Software Generation System Utilities) STRIP(1)
NAME
strip - strip symbol and line number information from a
common 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
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(4)] the archive symbol table will be removed. The
Page 1 May 1989
STRIP(1) (Software Generation System Utilities) STRIP(1)
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.
strip is used to reduce the file storage overhead 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
tmpnam(3S)].
SEE ALSO
ar(1), as(1), cc(1), ld(1), tmpnam(3S), a.out(4), ar(4).
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.
Page 2 May 1989