Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (s) strip(1)
NAME
strip - Removes unnecessary information from loadles or executable les
SYNOPSIS
strip [[-Wa]|[-Ws]]le ...
FLAGS
-Wa Removes the TNS/R Accelerator region or TNS/E Object Code Accelerator
region of an accelerated object le.
-Ws Removes the Inspect symbols region of a TNS or accelerated object le.
DESCRIPTION
The strip utility removes information that is considered unnecessary for proper execution of a
le:
TNS object files
This information includes the Binder and Inspect symbols regions.
accelerated object files
This information includes the Binder, debugger symbols, and TNS/R Accelerator
or TNS/E Object Code Accelerator regions.
TNS/R native non-position-independent code (non-PIC)
or PIC loadles
This information includes the debugger and nld or ld symbols regions.
TNS/E native PIC loadfiles
This information includes the eld symbols region.
Using strip is the same as using the -s ag with the c89 utility.
If neither -Wa nor -Ws is specied, strip removes:
Both the Binder and debugger symbols regions from TNS and accelerated object les
The symbols region from native loadles
Removing the Binder and debugger symbols regions of an executable object le or loadle does
not affect the behavior or outcome of the program. However:
Files stripped of the debugger symbols region cannot be debugged symbolically.
TNS and accelerated object les stripped of the Binder region cannot be relinked by the
Binder.
Environment Variables
This utility supports the use of the LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and
NLSPATH environment variables.
EXIT VALUES
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
527188-003 Hewlett-Packard Company 855