nld Manual

Introduction
nld Manual528272-001
1-2
Native Object Files
Native Object Files
nld operates on native object files. Native object files are in executable and linking
format (ELF), a standard format used for object files, with HP extensions. For details
on the structure of native object files, see Appendix C, Native Object File Structure.
Native object files are either linkfiles or loadfiles, but not both.
Native compilers produce only linkfiles. The nld utility can produce either linkfiles or
loadfiles.
Linkfiles can be used as nld input.
Loadfiles can be used as nld input in several ways:
For change of attributes or stripping options
For use in determining the libraries to be used at run time
As symbol bindings.
For example:
nld newobj.o crtlmain.o zcrtlsrl
specifies a linkfile (newobj.o), a library linkfile (crtlmain.o), and a library loadfile
(zcrtlsrl). Including the library loadfile in the nld command makes its facilities
available at run time.
Native object files in the Guardian environment have a file code of 700.
nld
Use the nld utility to:
Link one or more non-PIC TNS/R native object files to produce a single non-PIC
loadfile or linkfile
Modify existing loadfiles
The nld utility runs in these environments:
Guardian
OSS
Microsoft Windows NT, Windows 2000, and Windows XP, by means of the HP
Enterprise Toolkit—NonStop Edition (ETK), which is based on Microsoft Visual
Studio .NET
Can Be Linked to Produce a Loadfile Can Be Loaded for Execution
Linkfiles Yes No
Loadfiles No Yes