strip(1)
NAME
strip − strip symbol and line number information from object files
SYNOPSIS
strip [−l] [−x] [−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.
−r 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 will complain and terminate without stripping file-name unless the −r flag 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 instruct 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
/usr/tmp/strp??????
SEE ALSO
ar(1), pas(1), pcc(1), pld(1).
a.out(4), ar(4) in the CX/UX Programmer’s Reference Manual.
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.
CX/UX User’s Reference Manual