Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
User Commands (s) strip(1)
NAME
strip - Removes unnecessary information from loadfiles or executable files
SYNOPSIS
strip [[-Wa]|[-Ws]]file ...
FLAGS
-Wa Removes the TNS/R Accelerator region or TNS/E Object Code Accelerator
region of an accelerated object file.
-Ws Removes the Inspect symbols region of a TNS or accelerated object file.
DESCRIPTION
The strip utility removes information that is considered unnecessary for proper execution of a
file:
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 loadfiles
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 flag with the c89 utility.
If neither -Wa nor -Ws is specified, strip removes:
• Both the Binder and debugger symbols regions from TNS and accelerated object files
• The symbols region from native loadfiles
Removing the Binder and debugger symbols regions of an executable object file or loadfile 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 files 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-004 Hewlett-Packard Company 8−55