Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strip(1) — NEXTSTEP 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ld(1)

cc(1)

STRIP(1)  —  UNIX Programmer’s Manual

NAME

strip − remove symbols and relocation bits

SYNOPSIS

strip [ option ] name ... 

DESCRIPTION

Strip removes the symbol table and relocation bits ordinarily attached to the output of the assembler and loader.  This is useful to save space after a program has been debugged. 

The effect of strip is the same as use of the −s option of ld(1). The options −S, −x, and −X have the same effect as the ld(1) options.

There are mutually exclusive options to strip(1):

−s filename
Save the symbol table entries for the global symbols listed in filename.  The symbol names listed in filename must be one per line with no other white space in the file except the newlines on the end of each line. 

−S ‘Strip’ the output by removing all symbols except locals and globals. 

−X Save local symbols except for those whose names begin with ‘L’. 

−x Do not preserve local (non-.globl) symbols in the output symbol table; only save external symbols. 

−gg Only strip the symbol segments produced by the (obsolete) −gg option of the compiler cc(1).

SEE ALSO

ld(1), cc(1)

LIMITATIONS

Not every layout of a Mach-O file can be stripped by this program.  But all layouts produced by the compiler system can be stripped. 

NeXT, Inc.  —  July 18, 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026