Manual Page Result
0
Command: ostrip | Section: 1 | Source: Digital UNIX | File: ostrip.1.gz
ostrip(1) General Commands Manual ostrip(1)
NAME
ostrip - Reduce the size of object files
SYNOPSIS
ostrip [flags] file ...
FLAGS
The following flags are supported by the ostrip command: Removes the
.comment section. Removes unreferenced symbols and types. Joins the
text and data file and the symbol table file. Removes unreferenced
symbols and types. Decompresses the output. Removes symbol table.
Creates two files: one stripped, one with symbol table. Removes local
symbol table. Compresses the output.
The following descriptions define the flags in greater detail: Removes
the .comment section of a linked image. Removes 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. 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). Removes 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. Decompresses
the output of ostrip. This flag is provided for cases in which the in-
put file is compressed in ALPHAMAGICZ format. Removes the symbol ta-
ble. (Performs the same operations as the strip command.) 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. Produces a reduced symbol table by removing local
symbols and auxiliary records. (Performs the same operations as the ld
-x command.) Compresses the output of ostrip into ALPHAMAGICZ format.
DESCRIPTION
The ostrip command reduces the components of any object file based on
the flags 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
The following command strips the local symbol table and converts the
object file into ALPHAMAGICZ format: ostrip -x -Z obj.o The following
command produces the symbol table file osize_mm.stb and the stripped
image file osize.mm: ostrip -t osize.mm The following command joins the
symbol table file osize_mm.stb to osize.mm: ostrip -j osize.mm
RELATED INFORMATION
delim off
ostrip(1)