nld and noft Manual
nld and noft Manual—520384-003
7-1
7 strip Utility
The strip utility removes unnecessary information from existing loadfiles in the Open
System Services (OSS) environment. Unnecessary information is that which is not
required for proper execution of the files, including the information in Table 7-1.
To run the strip utility, use the following syntax. The syntax is the same in every
environment in which strip runs:
-Wa
removes the Accelerator region from every accelerated object-file.
-Ws
removes the Inspect symbols region from every TNS or accelerated object-
file.
object-file
is a pathname of an object file.
If neither -Wa or -Ws is specified, strip removes:
•
Both the Binder and Inspect symbols regions from every TNS or accelerated
object-file
•
The symbols region from every TNS/R native object-file
The strip utility returns the following exit values:
Removing the Binder and Inspect symbols regions from a loadfile does not affect the
behavior or outcome of the program. Programs stripped of the Inspect symbols region
cannot be debugged symbolically. TNS and accelerated programs stripped of the
Binder region cannot be relinked by the Binder. TNS/R native programs stripped of the
symbols region cannot be relinked by the nld utility.
Table 7-1. Unnecessary Information in Loadfiles
File Type Unnecessary Information
TNS Binder and Inspect symbol regions
Accelerated Binder, Inspect symbol, and Accelerator regions
TNS/R native Region used by Inspect and nld
strip [ -Wa | -Ws ] object-file ...
Value Meaning
0 Successful completion.
>0 An error occurred.