1STRIP(1P)                  POSIX Programmer's Manual                 STRIP(1P)
2
3
4

PROLOG

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
11

NAME

13       strip — remove unnecessary information from strippable files  (DEVELOP‐
14       MENT)
15

SYNOPSIS

17       strip file...
18

DESCRIPTION

20       A  strippable  file  is defined as a relocatable, object, or executable
21       file.  On XSI-conformant systems, a strippable file can also be an  ar‐
22       chive of object or relocatable files.
23
24       The  strip utility shall remove from strippable files named by the file
25       operands any information the implementor deems unnecessary  for  execu‐
26       tion of those files. The nature of that information is unspecified. The
27       effect of strip on object and executable files shall be similar to  the
28       use  of  the −s option to c99 or fort77.  The effect of strip on an ar‐
29       chive of object files shall be similar to the use of the −s  option  to
30       c99 or fort77 for each object file in the archive.
31

OPTIONS

33       None.
34

OPERANDS

36       The following operand shall be supported:
37
38       file      A pathname referring to a strippable file.
39

STDIN

41       Not used.
42

INPUT FILES

44       The  input  files shall be in the form of strippable files successfully
45       produced by any compiler defined by this volume of POSIX.1‐2008 or pro‐
46       duced  by  creating  or  updating an archive of such files using the ar
47       utility.
48

ENVIRONMENT VARIABLES

50       The following environment  variables  shall  affect  the  execution  of
51       strip:
52
53       LANG      Provide  a  default  value for the internationalization vari‐
54                 ables that are unset or null. (See the Base Definitions  vol‐
55                 ume  of POSIX.1‐2008, Section 8.2, Internationalization Vari‐
56                 ables for the precedence  of  internationalization  variables
57                 used to determine the values of locale categories.)
58
59       LC_ALL    If  set  to  a non-empty string value, override the values of
60                 all the other internationalization variables.
61
62       LC_CTYPE  Determine the locale for the interpretation of  sequences  of
63                 bytes of text data as characters (for example, single-byte as
64                 opposed to multi-byte characters in arguments).
65
66       LC_MESSAGES
67                 Determine the locale that should be used to affect the format
68                 and  contents  of  diagnostic  messages  written  to standard
69                 error.
70
71       NLSPATH   Determine the location of message catalogs for the processing
72                 of LC_MESSAGES.
73

ASYNCHRONOUS EVENTS

75       Default.
76

STDOUT

78       Not used.
79

STDERR

81       The standard error shall be used only for diagnostic messages.
82

OUTPUT FILES

84       The strip utility shall produce strippable files of unspecified format.
85

EXTENDED DESCRIPTION

87       None.
88

EXIT STATUS

90       The following exit values shall be returned:
91
92        0    Successful completion.
93
94       >0    An error occurred.
95

CONSEQUENCES OF ERRORS

97       Default.
98
99       The following sections are informative.
100

APPLICATION USAGE

102       None.
103

EXAMPLES

105       None.
106

RATIONALE

108       Historically,  this  utility  has  been used to remove the symbol table
109       from a strippable file. It was included since  it  is  known  that  the
110       amount  of  symbolic  information  can amount to several megabytes; the
111       ability to remove it in a portable manner was deemed  important,  espe‐
112       cially for smaller systems.
113
114       The  behavior of strip on object and executable files is said to be the
115       same as the −s option to a compiler. While the  end  result  is  essen‐
116       tially the same, it is not required to be identical.
117
118       XSI-conformant systems support use of strip on archive files containing
119       object files or relocatable files.
120

FUTURE DIRECTIONS

122       None.
123

SEE ALSO

125       ar, c99, fort77
126
127       The Base Definitions volume of  POSIX.1‐2008,  Chapter  8,  Environment
128       Variables
129
131       Portions  of  this text are reprinted and reproduced in electronic form
132       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
133       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
134       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
135       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
136       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
137       event of any discrepancy between this version and the original IEEE and
138       The Open Group Standard, the original IEEE and The Open Group  Standard
139       is  the  referee document. The original Standard can be obtained online
140       at http://www.unix.org/online.html .
141
142       Any typographical or formatting errors that appear  in  this  page  are
143       most likely to have been introduced during the conversion of the source
144       files to man page format. To report such errors,  see  https://www.ker
145       nel.org/doc/man-pages/reporting_bugs.html .
146
147
148
149IEEE/The Open Group                  2013                            STRIP(1P)
Impressum