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).

-d

 

 

Sizes in octal.

-o

 

 

Sizes in hexadecimal.

-x

 

 

Version information about the size command.

-V

 

 

Verbose list of the subspaces in the object files. Each subspace is listed on a separate line

-v

with its size, physical address, and virtual address.

 

 

 

64-bit mode only: Size of each allocatable section.

-f

 

 

64-bit mode only: Size and permission bits of each loadable segment=.

-F

 

 

64-bit mode only: Sizes of non loadable segments or non allocatable sections.

-n

 

 

Print the usage menu

-U

 

 

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 -soption of ld. You can control the amount of information stripped from the symbol table by using the following options:

To

Use the 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

-r

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.

-V

 

 

 

 

NOTE: The -land -xoptions 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 -roption is used.

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 Start-up with fastbind(1)

The fastbind(1) command prepares an incomplete executable for faster program start-up. It can improve the start-up time of programs that use shared libraries (incomplete executables) by storing information about needed shared library symbols in the executable file.

76 Linker Tools for PA-RISC Systems