ld_pa.1 (2010 09)

l
ld_pa(1) PA-RISC Systems Only
ld_pa(1)
Lazy loading can be disabled at runtime by setting the
LD_NOLAZYLOAD environ-
ment variable.
+linkersyms
(Kernel virtual environment support only.) Create linker-generated symbols even if
building a shared library. The kernel with virtual environment support is built
with the -b option which by default does not create linker-generated symbols in
shared libraries. See Kernel Virtual Environment Support for more information.
+nobss Pads the data segment with zeros, so that the data segment can be mapped with a
single call to mmap at runtime. Normally, data segments require one
mmap call for
file-backed storage and a second
mmap
call for blank static storage (bss). Use of
this option increases your output file size.
+nodefaultmap
This option tells the linker not to use the default memory map. The user needs to
supply a mapfile through the
-k linker option.
+nodynhash Disables the default linker behavior of the
+gst option to create the .dynhash sec-
tion for executables or shared libraries. Use this option to eliminate generation of
pre-computed hash table information for a library or an executable that is rarely
used with the global symbol table lookup scheme or for which the overhead of stor-
ing pre-computed hash values is too high.
This option has no effect when used with the
-r option.
+noenvvar Instructs the dynamic loader to not look at the LD_LIBRARY_PATH
,
SHLIB_PATH, and $ORIGIN environment variables at runtime. This is turned on
if ld +compat is specified. (The dynamic loader, however, uses the
LD_PRELOAD environment variable with the +noenvvar option.) This is turned
off by default or if ld +std is specified. See +compat or +std. Generally, this
option is used for secure programs (e.g.
setuid).
+noprocelim_sym symbol [
+noprocelim_sym symbol]...
Do not remove symbol when using dead code elimination (
+Oprocelim). This
option can be used for hidden symbols as well as exported symbols.
You can specify more than one symbol on the command line with multiple option-
symbol pairs, that is, each symbol you specify must be preceded by the
+noprocelim_sym option.
+nosectionmerge
Used with the -r option to allow procedures to be positioned independently. The
default is to merge all procedures into a single section.
+nosymb symbol
When building a shared library with -B symbolic, causes the linker to exclude
the specified symbol from -B symbolic symbol resolution.
You can specify more than one symbol on the command line with multiple option-
symbol pairs, that is, each symbol you specify must be preceded by the
+nosymb
option.
symbol can also be a regular expression that matches multiple symbol names. Reg-
ular expressions are described in regexp (5).
+paddata pagesize
Pads the data segment to a multiple of pagesize with zeros. This can improve page
allocation, thus reduce TLB misses.
+padtext pagesize
Pads the text segment to a multiple of pagesize with zeros. This can improve page
allocation, thus reduce TLB misses.
+pdzero Generates a zero page of 4K bytes at the beginning of the data segment. It also sets
the default starting address of the data segment to 0x8000000000000000. This
option improves performance by reducing TLB misses by allowing the kernel to allo-
cate bigger data pages.
16 Hewlett-Packard Company 16 HP-UX 11i Version 3: September 2010