| United States-English |
|
|
|
![]() |
HP-UX 11i Version 1.5 Release Notes: release id B.11.20for rx9610 and rx4610 hp serversand i2000 hp workstations > Chapter 7 ProgrammingLinker Toolset |
|
The IPF linker toolset provides a set of tools for linking and managing ELF object files. This toolset includes the ar, chatr, elfdump, ld, ldd, lorder, nm, size, and strip utilities. In HP-UX 11i Version 1.5 (B.11.20) the linker and dynamic loader use a linking and loading model that is consistent with the de facto industry standard. The IPF linker maintains certain 32-bit PA behaviors to make the transition from 32-bit PA to IPF easier. You can enable this compatibility feature by using the +compat linker option. The +compat option forces the linker and loader to mimic some of the 32-bit PA behaviors. There is no incompatibility for applications migrating from 64-bit PA to 64-bit IPF. Incompatibility for applications migrating from 32-bit PA to 32-bit on IPF can be grouped as follows:
On PA systems the default behavior is +noobjdebug, on HP-UX 11i Version 1.5 (B.11.20), the default debugging behavior is +objdebug. When +objdebug is enabled, debug information is not copied over to the executable file, relocatable object files should not be deleted, and they must be present when debugging the program. This results in a significant improvement in link time. The linker toolset supports the building of native IPF applications. PA-RISC applications can be run on IPF (through the Aries code emulator) but not compiled and linked on IPF. The PA-RISC linker toolset files (ar, chatr, ldd, nm, odump, size, strip) are provided in a separate directory (/usr/ccs/pa/usr/ccs/bin) and can be used to support existing PA-RISC applications. To use the PA-RISC linker toolset, set the SDKROOT environment variable to /usr/ccs/pa and specify the regular toolset file in the command line. This method invokes a script that starts up the corresponding PA-RISC linker toolset file. For example, with the k-shell:
To run commands from the IPF linker toolset again, unset SDKROOT. Or, if you are running in a mixed environment and need to run IPF and PA-RISC linker tools on different files, you can set SDKROOT for just one command:
For more information, see http://devresource.hp.com and the ld(1) manual page. |
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||