strip(1) strip(1)NAME strip - strips symbol and line number information from an object file SYNOPSIS strip [-l] [-r] [-s] [-V] [-x] file... ARGUMENTS file Specifies the object file to be stripped. -l Strips line number information only; does not strip any symbol table information. -r Resets the relocation indexes into the symbol table. -s Resets the line number indexes into the symbol table (do not remove). Resets the relocation indexes into the symbol table. -V Prints the version of the strip command executing on the standard error output. -x Does not strip static or external symbol information. 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 options. 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 file unless the -r option 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 option before the archive can be link edited by the ld(1) command. strip 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. January 1992 1
strip(1) strip(1)STATUS MESSAGES AND VALUES strip: name: cannot open name cannot be read. strip: name: bad magic name is not an object file. strip: name: relocation entries present name contains relocation entries and the -r option was not used; therefore, the symbol table information cannot be stripped. FILES /bin/strip Executable file /usr/tmp/str?????? Temporary file SEE ALSO as(1), cc(1), ld(1), sdb(1) ar(4), a.out(4) in A/UX Programmer's Reference 2 January 1992