Kenwood HP 9000 Personal Computer User Manual


 
116 Chapter 4
Linker Tools
Reducing Storage Space with strip(1)
Reducing Storage Space with strip(1)
The strip(1) command removes the symbol table and line number
information from object files, including archives. Thereafter, no symbolic
debugging access is available for that file. The purpose of this command
is to reduce file storage overhead consumed by the object file. Use this
command on production modules that have been debugged and tested.
The effect is nearly identical to using the -s option of ld.
You can control the amount of information stripped from the symbol
table by using the following options:
NOTE The -l and -x options are synonymous because the symbol table
contains only static and external symbols. Either option strips only
symbolic debugging information and unloadable data.
If there are any relocation entries in the object file and any symbol table
information is to be stripped, strip issues a message and terminates
without stripping the specified file unless the -r option is used.
To
Use this
option
Strip line number information only; do not strip any
symbol table information.
-l
Do not strip static or external symbol information. -x
32-bit mode only: Reset the relocation indexes into the
symbol table. This option allows strip to be run on
relocatable files, in which case the effect is also to strip
only symbolic debugging information and unloadable
data.
-r
Print the version of the strip command to stderr. -V