HP-UX HB v13.00 Ch-11 - Software Development

HP-UX Handbook Rev 13.00 Page 18 (of 101)
Chapter 11 Software Development
October 29, 2013
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references disabled
On IA:
HelloWorld:
32-bit ELF executable
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third
/usr/lib/hpux32:/opt/langtools/lib/hpux32
shared library list:
libc.so.1
shared library binding:
deferred
global hash table disabled
global hash table size 1103
shared library mapped private disabled
runtime checks disabled
shared library segment merging disabled
shared vtable support disabled
explicit unloading disabled
linkage table protection disabled
segments:
index type address flags size
8 text 04000000 z---c- D (default)
9 data 40010000 ---m-- D (default)
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
nulptr dereferences trap disabled
address space model: default
caliper dynamic instrumentation disabled
We will concentrate only on the shared library list of the output. A few of the other things listed
here will be discussed later. Our HelloWorld program only references /usr/lib/libc.2 on PA
and /usr/lib/hpux32/libc.so.1 on IA. printf must be defined in libc.2*, otherwise the
linker would have printed an error. To check if this is true, we can again use nm(1):
$ nm /usr/lib/libc.2
On PA:
Symbols from /usr/lib/libc.2: