зеркало из https://github.com/mozilla/pjs.git
37 строки
1.9 KiB
Plaintext
37 строки
1.9 KiB
Plaintext
striptease (or "tease" for short) is an enhanced version of strip. It's
|
|
capable of stripping a binary's symbol table of non-text local symbols.
|
|
This mode, enabled with the -t switch, is similar to "strip -s", except
|
|
-s strips all local symbols including text symbols. tease -t allows for
|
|
useful CrashReporter stacks to be generated on the deployment host. This
|
|
is important in light of the hidden-visibility default (-fvisibility=hidden)
|
|
that results in many symbols not being marked as global and therefore being
|
|
stripped by an ordinary strip -s.
|
|
|
|
tease also includes a -no_code_signature option, which strips any
|
|
LC_CODE_SIGNATURE load commands from the target file, in much the same way
|
|
as the ordinary strip's -no_uuid option.
|
|
|
|
Finally, tease includes an -a option, which instructs it to regenerate the
|
|
symbol table without stripping anything. tease -a is intended to be used
|
|
in conjunction with -no_code_signature (or -no_uuid), to pass over the file
|
|
and only strip the relevant Mach-O load commands without removing anything
|
|
from the symbol table.
|
|
|
|
striptease is based on strip.c and other supporting files in Apple's
|
|
cctools package. This version of striptease is based on cctools-667.3,
|
|
corresponding to Xcode Tools 3.0 and Mac OS X 10.5.0. It builds properly
|
|
under Xcode Tools 2.x on Mac OS X 10.4, as well. The cctools package is
|
|
available from:
|
|
|
|
http://www.opensource.apple.com/darwinsource/tarballs/apsl/cctools-667.3.tar.gz
|
|
|
|
cctools, and therefore strip, are available under the APSL license:
|
|
|
|
http://www.opensource.apple.com/apsl/
|
|
|
|
All files from cctools necessary to build strip are included, unmodified.
|
|
This includes strip.c. Changes to strip.c are made in tease.c. Many other
|
|
files from the cctools package not relevant to strip (or tease) are omitted
|
|
from this distribution. This README and an accompanying Makefile.in for
|
|
build system integration are also included.
|