strip(1)
_________________________________________________________________
strip Command
strip non-executable information from an executable file
_________________________________________________________________
SYNTAX
strip [-l] [-x] [-V] filename ...
DESCRIPTION
The strip command strips from executable files the four non-
executable sections: debugger symbols, debugger lines, lines
title, and symbol table (see a.out(4)).
After stripping, no symbolic debugging access is available for
that file. Therefore, this command is normally run only on
production modules that have been debugged and tested.
Options are:
-l Strip only debugger lines and lines title data.
-x Strip only debugger symbols data.
-V Print, on the standard error output, the version of the
strip command being executed.
This command reduces the file storage overhead taken by the
executable file.
_________________________________________________________________
EXAMPLES
$ ls -s file
64 file
The ls -s command shows the block size of the file before the
strip is done.
$ strip file
$ ls -s file
48 file
The ls -s command shows that after the strip is done, the file
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
strip(1)
is smaller, only 48 blocks instead of 64 blocks.
_________________________________________________________________
FILES
/usr/tmp/strp* temporary files
SEE ALSO
as(1), cc(1), ld(1), size(1), a.out(4).
DIAGNOSTICS
strip: name: cannot be read if name cannot be opened or
is too short to be an
executable file.
strip: name: bad magic if name is not an appropriate
executable file.
BUGS
The DG/UX implementation of strip currently does not work on
object files or archive files.
The -r (do not strip relocation information) and -b (do not strip
block scope information) options are not supported by the DG/UX
implementation of strip.
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)