1STRIP(1P) POSIX Programmer's Manual STRIP(1P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 strip - remove unnecessary information from executable files (DEVELOP‐
13 MENT)
14
16 strip file...
17
19 The strip utility shall remove from executable files named by the file
20 operands any information the implementor deems unnecessary for execu‐
21 tion of those files. The nature of that information is unspecified. The
22 effect of strip shall be similar to the use of the -s option to c99 or
23 fort77.
24
26 None.
27
29 The following operand shall be supported:
30
31 file A pathname referring to an executable file.
32
33
35 Not used.
36
38 The input files shall be in the form of executable files successfully
39 produced by any compiler defined by this volume of
40 IEEE Std 1003.1-2001.
41
43 The following environment variables shall affect the execution of
44 strip:
45
46 LANG Provide a default value for the internationalization variables
47 that are unset or null. (See the Base Definitions volume of
48 IEEE Std 1003.1-2001, Section 8.2, Internationalization Vari‐
49 ables for the precedence of internationalization variables used
50 to determine the values of locale categories.)
51
52 LC_ALL If set to a non-empty string value, override the values of all
53 the other internationalization variables.
54
55 LC_CTYPE
56 Determine the locale for the interpretation of sequences of
57 bytes of text data as characters (for example, single-byte as
58 opposed to multi-byte characters in arguments).
59
60 LC_MESSAGES
61 Determine the locale that should be used to affect the format
62 and contents of diagnostic messages written to standard error.
63
64 NLSPATH
65 Determine the location of message catalogs for the processing of
66 LC_MESSAGES .
67
68
70 Default.
71
73 Not used.
74
76 The standard error shall be used only for diagnostic messages.
77
79 The strip utility shall produce executable files of unspecified format.
80
82 None.
83
85 The following exit values shall be returned:
86
87 0 Successful completion.
88
89 >0 An error occurred.
90
91
93 Default.
94
95 The following sections are informative.
96
98 None.
99
101 None.
102
104 Historically, this utility has been used to remove the symbol table
105 from an executable file. It was included since it is known that the
106 amount of symbolic information can amount to several megabytes; the
107 ability to remove it in a portable manner was deemed important, espe‐
108 cially for smaller systems.
109
110 The behavior of strip is said to be the same as the -s option to a com‐
111 piler. While the end result is essentially the same, it is not required
112 to be identical.
113
115 None.
116
118 ar, c99, fort77
119
121 Portions of this text are reprinted and reproduced in electronic form
122 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
123 -- Portable Operating System Interface (POSIX), The Open Group Base
124 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
125 Electrical and Electronics Engineers, Inc and The Open Group. In the
126 event of any discrepancy between this version and the original IEEE and
127 The Open Group Standard, the original IEEE and The Open Group Standard
128 is the referee document. The original Standard can be obtained online
129 at http://www.opengroup.org/unix/online.html .
130
131
132
133IEEE/The Open Group 2003 STRIP(1P)