HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)
l
ld_pa(1)
PA-RISC Systems Only
ld_pa(1)
• When linking for use with the symbolic debugger dde, the user must ensure that the program contains a
routine called
main. Also, the user must link in the file
/opt/langtools/lib/end.o
on 32-bit
and
/opt/langtools/lib/pa20_64/end.o
on 64-bit as the last file named on the command
line.
There is no guarantee that the linker will pick up files from archive libraries and include them in the final
program in the same relative order that they occur within the library.
The linker emits warnings wherever it detects any compatibility issues. Among other things, these issues
include architectural ones, as well as functionality that may change over time. Some of these include:
• Linking a PA 2.0 object file, which will not run on a PA 1.x system.
• Incremental loading with the
-A option.
• Procedure call parameter and return type checking, including the
-C option.
• Symbols with the same name but different types, such as CODE and DATA.
• Checking of unsatisfied symbols by the linker, which sometimes skips certain object files from an
archived library. This warning is only given if the
-v option is also provided.
• Versioning of objects within a shared library.
These messages can be turned off with the
+vnocompatwarnings
option.
As noted in the Options section, certain options no longer exist in a 64-bit linker. They are:
•
-q
• -A
• -C
• -E
• -Q
• -S
• -X
• +dpv
AUTHOR
ld was developed by AT&T, the University of California, Berkeley, and HP.
FILES
/usr/lib/lib* 32-bit system archive and shared libraries
/usr/lib/pa20_64/lib*
64-bit system archive and shared libraries
/usr/ccs/lib* 32-bit development archive and shared libraries
/opt/langtools/lib/pa20_64
64-bit development object files, archive and shared
libraries
a.out output file
/usr/lib/dld.sl 32-bit dynamic loader
/usr/lib/pa20_64/dld.sl 64-bit dynamic loader
/opt/langtools/lib/end.o for use with the 32-bit dde debugger
/opt/langtools/lib/pa20_64/end.o for use with the 64-bit
dde debugger
/usr/ccs/lib/crt0.o 32-bit run-time startup file
/opt/langtools/lib/crt0.o Identical to /usr/ccs/lib/crt0.o
/opt/langtools/lib/pa20_64/crt0.o
64-bit run-time startup file
/usr/ccs/lib/dyncall.o 32-bit only. Used with -A option links
/opt/langtools/lib/mcrt0.o 32-bit run-time startup with profiling (see prof(1))
/usr/lib/milli.a 32-bit millicode library automatically searched by
ld
/usr/lib/pa20_64/milli.a
64-bit millicode library automatically searched by ld
/opt/langtools/lib/gcrt0.o
run-time start-up with profiling (see gprof(1))
558 Hewlett-Packard Company − 21 − HP-UX 11i Version 3: February 2007