fix silly indirect-through-zero bug
[unix-history] / usr / src / usr.bin / strip / strip.1
index ef051df..4c3f409 100644 (file)
@@ -1,28 +1,43 @@
-.\"    @(#)strip.1     4.1 (Berkeley) %G%
+.\" Copyright (c) 1989, 1990 The Regents of the University of California.
+.\" All rights reserved.
 .\"
 .\"
-.TH STRIP 1 
-.AT 3
-.SH NAME
-strip \- remove symbols and relocation bits
-.SH SYNOPSIS
-.B strip
-name ...
-.SH DESCRIPTION
-.I 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.
-.PP
-The effect of
-.I strip
-is the same as use of the
-.B \-s
-option
-of
-.IR ld .
-.SH FILES
-/tmp/stm?      temporary file
-.SH "SEE ALSO"
-ld(1)
+.\" %sccs.include.redist.roff%
+.\"
+.\"     @(#)strip.1    6.6 (Berkeley) %G%
+.\"
+.Dd 
+.Dt STRIP 1
+.Os
+.Sh NAME
+.Nm strip
+.Nd remove unnecessary information from executable files
+.Sh SYNOPSIS
+.Nm strip
+.Op Fl d
+.Ar file ...
+.Sh DESCRIPTION
+The
+.Nm strip
+utility
+deletes the relocation information and symbol table used by
+assemblers, loaders and debuggers.
+This significantly
+decreases the size of the installed binaries and saves disk space.
+.Pp
+The options are as follows:
+.Bl -tag -width Ds
+.It Fl d
+Delete only debugging and empty symbols.
+.El
+.Pp
+.Nm Strip
+exits 0 on success and 1 if an error occurred.
+.Sh SEE ALSO
+.Xr cc 1 ,
+.Xr ld 1 ,
+.Xr stab 5
+.Sh HISTORY
+A
+.Nm
+command appeared in
+.At v6 .