strip(1) strip(1)
NAME
strip - strip symbol and line number information from an
object file
SYNOPSIS
strip [-l] [-r] [-s] [-V] [-x] filename(s)
DESCRIPTION
The strip command strips the symbol table and line number
information from object files, including archives. When
strip has been performed, no symbolic debugging access is
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 the following flag options:
-l Strip line number information only; do not strip any
symbol table information.
-x Do not strip static or external symbol information.
-r Reset the relocation indexes into the symbol table.
-s Reset the line number indexes into the symbol table (do
not remove). Reset the relocation indexes into the
symbol table.
-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
complains and terminates without stripping filename unless
the -r flag is used.
If the strip command is executed on a common archive file
(see ar(4)) the archive symbol table is removed. The
archive symbol table must be restored by executing the ar(1)
command with the s flag option before the archive can be
link edited by the ld(1) command. strip(1) instructs the
user with appropriate warning messages when this situation
arises.
The purpose of this command is to reduce the file storage
overhead taken by the object file.
FILES
/bin/string
/usr/tmp/str??????
Page 1 (last mod. 1/16/87)
strip(1) strip(1)
SEE ALSO
as(1), cc(1), ld(1), ar(4), a.out(4).
DIAGNOSTICS
strip: name: cannot open
name cannot be read.
strip: name: bad magic
name is not an object file.
strip: name: relocation entries present; cannot strip
name contains relocation entries and the -r flag was
not used; therefore, the symbol table information
cannot be stripped.
Page 2 (last mod. 1/16/87)