xref: /original-bsd/usr.bin/strip/strip.1 (revision c3e32dec)
1.\" Copyright (c) 1989, 1990, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"     @(#)strip.1	8.1 (Berkeley) 06/06/93
7.\"
8.Dd
9.Dt STRIP 1
10.Os
11.Sh NAME
12.Nm strip
13.Nd remove unnecessary information from executable files
14.Sh SYNOPSIS
15.Nm strip
16.Op Fl d
17.Ar file ...
18.Sh DESCRIPTION
19The
20.Nm strip
21utility
22deletes the relocation information and symbol table used by
23assemblers, loaders and debuggers.
24This significantly
25decreases the size of the installed binaries and saves disk space.
26.Pp
27The options are as follows:
28.Bl -tag -width Ds
29.It Fl d
30Delete only debugging and empty symbols.
31.El
32.Pp
33.Nm Strip
34exits 0 on success and 1 if an error occurred.
35.Sh SEE ALSO
36.Xr cc 1 ,
37.Xr ld 1 ,
38.Xr stab 5
39.Sh HISTORY
40A
41.Nm
42command appeared in
43.At v6 .
44