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