HP-UX Linker and Libraries User's Guide

Example 9 Calling pstack with special argument -1
3774: /usr/bin/bash
-------------------------------- lwpid : 4520 -------------------------------
0: 00000000040c47c1 : make_child() + 0x311 (/usr/bin/bash)
1: 000000000420bd60 : push_scope() + 0x3b0 (/usr/bin/bash)
2: 0000000004208e40 : coproc_closeall() + 0xfa0 (/usr/bin/bash)
3: 00000000040ba440 : execute_command_internal() + 0xf70 (/usr/bin/bash)
4: 000000000416c420 : execute_command() + 0x160 (/usr/bin/bash)
5: 00000000042206f0 : reader_loop() + 0x670 (/usr/bin/bash)
6: 00000000040776b0 : main() + 0xc60 (/usr/bin/bash)
7: 60000000c0048c90 : main_opd_entry() + 0x50 (/usr/lib/hpux32/dld.so)
Viewing the Size of Object File Elements with size(1)
The size(1) command produces section size information for each section in your specified
object files. It displays the size of the text, data, and bss (uninitialized data) sections with the total
size of the object file. If you specify an archive file, the information for all archive members is
displayed. Use the following options to view information for your specified files:
Use the optionTo view this
-dSizes in decimal (default).
-fSize of each allocatable section.
-FSize and permission bits of each loadable segment.
-nSizes of nonloadable segments or nonallocatable sections.
-oSizes in octal.
-UDisplay the usage message.
-VVersion information about the size command.
-vVerbose list of the subspaces in the object files. Each subspace is listed on a separate line
with its name, size, and virtual address.
-xSizes in hexadecimal.
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:
Viewing the Size of Object File Elements with size(1) 65