HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)
l
ld_ia(1)
Integrity Systems Only
ld_ia(1)
-PF filename Indicate to the linker to use the specified file for the link order file instead of generat-
ing it using /usr/ccs/bin/fdp
. This option is incompatible with the
+ild
option.
-Q This option is ignored.
-R offset Set (in hexadecimal) the starting address of the text (i.e., code) segment. This option
is useful with kernel and embedded applications. The default address for 64-bit mode
is 0x4000000000000000 and for 32-mode is 0x04000000. If the
-N option is specified,
the default is 0x1000.
-S This option is ignored and generates a warning message.
-T Same as +nommap option.
-V Output a message giving information about the version of
ld being used.
-Z This is the default. Allow run-time dereferencing of null pointers. See the discussions
of -Z and pointers in cc(1). (This is the complement of the
-z option.)
+alloc_hidden_commons
Force storage allocation for hidden "common" symbols in
-r output. This is similar to
the
-d option, which allocates storage for all "common" symbols. If
+alloc_hidden_commons
is specified in combination with the -d option, -d will
take precedence.
+allowdups Allows multiple symbol definitions. By default, multiple symbol definitions that occur
between relocatable objects will result in a fatal error condition. This option
suppresses the error condition and allows the first symbol definition to be taken.
+[no]allowunsats
Control unsatisfied symbol error reporting. +allowunsats does not flag errors if
the resulting output file has unsatisfied symbols. This is the default for relocatable
links and shared library builds. +noallowunsats
flags an error if the resulting
output file has unsatisfied symbols. This is the default for program files.
+as mode Control the address space model to be used by the kernel. Possible values for mode
are default, share_magic , exec_magic , shmem_magic , and mpas. The
default value is currently equivalent to share_magic. In order to set the mode to
any value other than the default, this option must be used in conjunction with the -N
option to ensure that the text and data segments are contiguous.
+b path_list Specify a colon-separated list of directories to be searched at program run-time to
locate shared libraries needed by the executable output file that were specified with
either the -l or -l: options. This list of directories becomes the embedded path. If
the +b option appears more than once, the default is to record the last one specified.
Use +[no]concatrpath
to change this default behavior.
If either
+b is not used or if you specify a single colon (:) as the argument,
ld builds
an embedded path using all the directories specified by the
-L option(s) and the
LPATH environment variable (see the +s option).
+cdp oldpath:newpath
This option is ignored.
+compat Turn on compatibility mode in the linker — mimic behavior of PA-RISC 32-bit links.
+[no]concatrpath
[Disable] Enable concatenation of search path specified using +b path_list .
+[no]copyobjdebug
When you use the +noobjdebug linker option to override the effect of the
+objdebug compiler option, the linker omits the +objdebug information from the
object files (in addition to copying over the debug information to the output file). How-
ever, if any object files were the result of previous -r links, the +objdebug infor-
mation from these files is not omitted. The +nocopyobjdebug option, when used
in conjunction with the +noobjdebug option, forces the linker to omit +objdebug
information from all object files, including objects generated with the -r option.
+copyobjdebug is the default.
504 Hewlett-Packard Company − 7 − HP-UX 11i Version 2: December 2007 Update