Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ostrip(1) — Tru64 UNIX 4.0f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

strip(1)

ld(1)

objZ(1)

ostrip(1)  —  Commands

NAME

ostrip − Reduce the size of object files

SYNOPSIS

ostrip [options] file...

OPTIONS

The following options are supported by the ostrip command:

−cRemoves the .comment section. 

−gRemoves unreferenced symbols and types. 

−j image
Joins the text and data file and the symbol table file.

−mRemoves unreferenced symbols and types. 

−r or −R
Decompresses the output.

−sRemoves symbol table. 

−t image
Creates two files: one stripped, one with symbol table.

−xRemoves local symbol table. 

−z or −Z
Compresses the output.

The following descriptions define the options in greater detail:

−cRemoves the .comment section of a linked image. 

−gRemoves unreferenced symbols and unused type information from the symbol tables of a pre-link .o file.  This results in a smaller on-disk executable file.  If .o files modified with this option are subsequently linked, ostrip −m should be run on the linked image. 

−j [image.stb] image
Joins together two files that were previously split by the −t option into a symbol table file (image.stb) and a stripped image file (image). 

−mRemoves unreferenced symbols and unused type information for the symbol tables of a post-link executable file.  This results in a smaller on-disk executable file. The symbol table still contains all information required for debugging. 

−r or −R
Decompresses the output of ostrip.  This option is provided for cases in which the input file is compressed in ALPHAMAGICZ format. 

−sRemoves the symbol table. (Performs the same operations as the strip command.) 

−t [image.stb] image
Splits an image file (image) into a symbol table file (image.stb) and a stripped image file (image). The symbol table file will contain a checksum of the stripped image. 

−xProduces a reduced symbol table by removing local symbols and auxiliary records. (Performs the same operations as the ld −x command.) 

−z or −Z
Compresses the output of ostrip into ALPHAMAGICZ format. 

DESCRIPTION

The ostrip command reduces the components of any object file based on the options that are specified.  It is designed to work with any object file, that is, .o files, image files, and shared object files.  It does not work with .a (archive) files. 

RESTRICTIONS

None. 

EXAMPLES

     1.The following command strips the local symbol table and converts the object file into ALPHAMAGICZ format:

ostrip -x -Z obj.o

     2.The following command produces the symbol table file osize_mm.stb and the stripped image file osize.mm:

ostrip -t osize.mm

     3.The following command joins the symbol table file osize_mm.stb to osize.mm:

ostrip -j osize.mm

SEE ALSO

strip(1), ld(1), objZ(1)

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