STRIP(1) COMMAND REFERENCE STRIP(1) NAME strip - remove symbols and relocation bits SYNOPSIS strip [ -O suffix ] [ -S suffix ] [ -o ] [ -s ] [ -v ] file ... DESCRIPTION Strip 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 when the -s option of ld is used. OPTIONS -O suffix Create an output file named filesuffix that is a stripped version of file. The input file is left unstripped. -S suffix Save stripped information. The symbol table and other information that strip removes from file are stored in filesuffix. The symbol table file can be recombined with file using unstrip. -o Create an output file named file.stripped that is a stripped version of file. The input file is left unstripped. -s Save stripped information. The symbol table and other information that strip removes from file are stored in file.symtab. The symbol table file can be recombined with file using unstrip. -v Verbose. Reports the names of all input, output, and symbol table files used. Also reports sizes (in bytes) of the input and output files. EXAMPLES The following invocation removes the symbol table and relocation bits from the file cmd and prints messages telling you what it did: strip -v cmd The following invocation creates a stripped version of the file cmd in a file named cmd.out. The symbol table information is saved in cmd.symtab. Printed 5/12/88 1
STRIP(1) COMMAND REFERENCE STRIP(1) strip -O ".out" -s cmd FILES /tmp/stm? Temporary file RETURN VALUE [NO_ERRS] Command completed without error. [NP_WARN] An error warranting a warning message occurred. Execution continues. [P_WARN] A system error occurred. Execution continues. See intro(2) for more information on system errors. [P_ERR] A system error occurred. Execution terminated. See intro(2) for more information on system errors. SEE ALSO ld(1), unstrip(1), and a.out(5). Printed 5/12/88 2
%%index%% na:264,94; sy:358,346; de:704,542; op:1246,1475; ex:2721,467;3524,34; fi:3558,99; rv:3657,631; se:4288,180; %%index%%000000000141