Kenwood HP 9000 Personal Computer User Manual


 
90 Chapter 3
Linker Tasks
Using 64-bit Mode Linker Options
Using 64-bit Mode Linker Options
This section introduces 64-bit-only linker options.
Using the 64-bit Mode Linker with +compat or
+std
In the HP-UX 11.0 release, the linker toolset supports extended features
for linking in 64-bit mode. Since compatibility with the previous linker
toolset is a high priority, the 64-bit linker uses much of the old behavior
in the new toolset. The 64-bit mode linker includes two options to allow
you to instruct the linker to link in one of two modes:
Compatibility mode, with the +compat option, to create a link and
operation in 32-bit style. Because of some object file format
restrictions, the mode is not completely compatible with the style of
the 32-bit linker.
Standard mode, with the +std option, set by default in 64-bit mode,
to create a link and load operation in 64-bit style. This mode uses the
new behaviors and features of the 64-bit linker.
Using the Linker with +compat for Compatibility
Mode
The +compat option instructs the linker to do a 32-bit-style link.
When you use the +compat option, the linker:
Uses 32-bit style shared library internal name processing.
Lists all dependent shared libraries in a DT_HP_NEEDED entry the
dynamic table using the 32 bit-style shared library naming
conventions. These dependent libraries are recorded as compatibility
mode libraries even if they are really created as standard mode
dependent libraries.
If an error occurs during the link, the linker creates an a.out
without the executable permission bits set.
Does not use embedded paths at link time to find dependent
libraries.
Considers the order of ld +b and +s.