the object file. If you specify an archive file, the information for all archive members is displayed. Use the following options to display information for your specified files:
To display | Use the option |
|
|
Sizes in decimal (default). | |
|
|
Sizes in octal. | |
|
|
Sizes in hexadecimal. | |
|
|
Version information about the size command. | |
|
|
Verbose list of the subspaces in the object files. Each subspace is listed on a separate line | |
with its size, physical address, and virtual address. |
|
|
|
|
|
|
|
|
|
Print the usage menu | |
|
|
Reducing Storage Space with strip(1)
The strip 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
To | Use the option |
Strip line number information only; do not strip any symbol table information. | |
|
|
Do not strip static or external symbol information. | |
|
|
to be run on relocatable files, in which case the effect is also to strip only symbolic |
|
debugging information and unloadable data. |
|
|
|
Print the version of the strip command to stderr. | |
|
|
|
|
NOTE: The
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
If you execute strip on an archive file (see ar(4)), it removes the archive symbol table. The archive symbol table must be restored by executing ar with its s operator (see ar(1)) before the ld command (see ld (1)) can use the archive. strip issues appropriate warning messages when this situation occurs.
Improving Program
The fastbind(1) command prepares an incomplete executable for faster program
76 Linker Tools for