STRIP(1)
Series 200, 300, 500 Only
NAME
strip − remove symbols and debug information
SYNOPSIS
strip name ...
DESCRIPTION
Strip removes the symbol table and debug information from an executable object file. Once this is 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 effect is the same as use of the −s option of ld.
If name is a relocatable file, strip removes the debug information.
If the strip command is executed on an archive file (see ar (5)) 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. Also, strip removes the debug information from any a.out file it finds in the archive.
The purpose of this command is to reduce the file storage overhead taken by the object file.
HARDWARE DEPENDENCIES
Series 200:
If name is a relocatable file, strip will remove the local symbols from it. If name is an archive file, strip will remove the local symbols from any a.out format files it finds in the archive. Certain libraries, such as those residing in /lib, have no need for local symbols. By deleting them, the size of the archive is decreased and link editing performance is increased.
FILES
/tmp/s∗temporary files
SEE ALSO
ar(1), ld(1), ar(5), a.out(5).
Hewlett-Packard Company — May 11, 2021