strip(1) strip(1)
NAME
strip - strip symbol table
SYNOPSIS
strip [-blrVxm] [--] file...
DESCRIPTION
The strip command strips the symbol table, debugging information, and
line number information from ELF object files; COFF object files can
no longer be processed using strip. Once this stripping process has
been done, no symbolic debugging access will be available for that
file; therefore, this command is normally run only on production
modules that have been debugged and tested.
If strip is executed on a common archive file [see ar(1)] in addition
to processing the members, strip will remove the archive symbol table.
The archive symbol table must be restored by executing the ar(1) com-
mand with the -s option before the archive can be linked by the ld(1)
command. strip will produce appropriate warning messages when this
situation arises.
OPTIONS
The amount of information stripped from the ELF object file can be
controlled by using any of the following options:
-b Same effect as the default behavior. This option is obsolete and
will be removed in the next release.
-l Strips line number information only; does not strip the symbol
table or debugging information.
-r Same effect as the default behavior. This option is obsolete and
will be removed in the next release.
-V Print, on standard error, the version number of strip.
-x Does not strip the symbol table; debugging and line number infor-
mation may be stripped.
-m Do not strip the ".mdebug section", as the symbol table and
information on debugging and line numbers may also be stripped.
This option can be combined with the other options in order to
contain the symbol table as well, for example (-xm).
-- If the first filename begins with a dash (-), the end of the
command-line options must be marked with --.
strip is used to reduce the file storage overhead taken by the object
file.
Page 1 Reliant UNIX 5.44 Printed 11/98
strip(1) strip(1)
NOTES
The symbol table section will not be removed if it is contained within
a segment, or the file is either a relocatable or dynamic shared
object.
The line number and debugging sections will not be removed if they are
contained within a segment, or their associated relocation section is
contained within a segment.
LOCALE
The language of the message texts is governed by the environment vari-
able LCALL, LCMESSAGES or LANG.
When the default is set, the system behaves as if it were not interna-
tionalized, i.e. the message texts are in English. You must change one
of these variables in order to change the language of the message
texts.
Detailed information on the dependencies of the environment variables
and on internationalization in general can be found in the manual
"Programmer's Guide: Internationalization - Localization". Refer also
to environ(5) for information on setting the user environment.
FILES
TMPDIR/strp*
temporary files
TMPDIR
is usually /var/tmp, but can be redefined by setting the environ-
ment variable TMPDIR [see tempnam() in tmpnam(3S)].
SEE ALSO
ar(1), cc(1), ld(1), tmpnam(3S), a.out(4), ar(4).
Page 2 Reliant UNIX 5.44 Printed 11/98