NAME
strip - remove symbols and relocation bits
SYNOPSIS
strip [ -sgSxX ] [ -strip-all ] [ -strip-debug ] [
-discard-all ]
[ -discard-locals ] [ -cross ] file ...
DESCRIPTION
A MachTen system without MachTen VM requires the symbol
table and
relocation bits ordinarily attached to the output of the
loader to
correctly load and run programs. The default action of strip
on
such a system has been changed to leave the specified
file(s)
unaltered. In this case, it is necessary to specify the
-cross
option to force strip to strip the file.
A MachTen system with MachTen VM
is exactly like a traditional Unix
system, and does not require the symbol table and relocation
bits
ordinarily attached to the output of the loader to correctly
load
and run programs. The default action of strip on such a
system is
unchanged with respest to the default action of strip on a
traditional Unix system.
The -cross option forces strip
to remove the symbol table and
relocation bits ordinarily attached to the output of the
assembler
and loader. This is useful to save space in a program cross-
compiled under a MachTen system without MachTen VM for
another
operating environment.
The effect of strip is the same as use of the -s option of ld.
OPTIONS
-s|-strip-all
Strip all symbols
-g|-S|-strip-debug
Strip debugging symbols; currently there is no recognition
of
symbols used for debugging, so this option is a no-op.
-x|-discard-all
Strip all local symbols
-X|-discard-locals
Strip all local symbols that start with the letter
’L’
-cross
Enables strip to actually remove symbol table and relocation
information.
FILES
/tmp/stm? temporary file
SEE ALSO
ld(1)