strip(1) — Commands
NAME
strip − Removes symbols and relocation bits
SYNOPSIS
strip [−V] file ...
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
strip: XPG4, XPG4−UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
FLAGS
-V[SVID 3] Displays the version number of the strip command.
DESCRIPTION
The strip command removes the symbol table and relocation bits ordinarily attached to the output of the assembler and loader. This is useful to save space after a program has been debugged.
The effect of strip is the same as use of the −s option to cc, c89, or ld.
Note that strip command will not strip executables with unresolved relocation entries.
Environment Variables
The following environment variables affect the behavior of strip:
LANGProvides a default value for the locale category variables that are not set or null.
LC_ALLIf set, overrides the values of all other locale variables.
LC_CTYPE
Determines the locale for the interpretation of byte sequences as characters (single-byte or multibyte) in input parameters and files.
LC_MESSAGES
Determines the locale used to affect the format and contents of diagnostic messages displayed by the command.
NLSPATHDetermines the location of message catalogs for processing of LC_MESSAGES.
EXIT VALUES
An exit value of 0 (zero) indicates successful completion and a number greater than 0 indicates an error.
FILES
/tmp/stm?Temporary file
RELATED INFORMATION
Commands: ar(1), cc(1), c89(1), ld(1)
Standards: standards(5)