Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

eld(1) OSS Shell and Utilities Reference Manual
Saving Temporary Files
eld creates temporary working les while it processes command line or obey le information.
These temporary working les are given names of the form ZLDAFnnn (for all les except import
libraries and private DLL registry les), ZLDAInnn (for import libraries), or ZLDARnnn (for
private DLL registry les), where:
nnn is a unique sequentially assigned decimal number, beginning with 000
To create a nal permanent le with the same name as an existing le, eld must rst remove the
existing le. If eld processing is interrupted when removing and recreating the nal le, the work-
ing le is preserved as a le named ZLDnnn.
The temp_i, -temp_o,or-temp_r ag allows you to save the completed working le as a tem-
porary regular le with a known lename before the original le is removed. The temporary le is
itself removed after the nal permanent le is completely written.
Finding Libraries
If you specify an absolute or relative pathname for a ags lenamen value, no search occurs. eld
opens the specied le to see if it is a linkle, an archive, or a DLL. If the le cannot be opened,
an error occurs.
If you specify an unqualied lename (a lename value that does not contain a / character) for the
-l or -lib ag, the OSS version of eld attempts to nd the le. eld searches for libraries in the fol-
lowing locations when resolving the values specied for the -l or -lib ags:
1. Locations specied by the current -rst_l ag
2. Public libraries (installed by the system operator) ***
3. Locations specied by the current -libvol and -L ags
4. Default locations in the OSS environment:
/lib:/usr/lib:/usr/local/lib:/G/SYSTEM/ZDLL * **
The value of the COMP_ROOT environment variable is added to the beginning of /lib,
/usr/lib, and /usr/local/lib. By default, the value of COMP_ROOT is null in the OSS
environment.
The steps marked by an asterisk (*) are skipped when the -nostdlib or -no_stdlib ag is in effect,
and the steps marked by two asterisks (**) are skipped only when the -bstatic ag is used.
Archive libraries encountered in steps marked by ** are reported as errors.
eld searches in each location for libraries by name. eld tries to open the specied le. If it cannot,
it modies the supplied value and tries to open a le with the modied name. (Unqualied names
specied in the Guardian le system, /G, are not modied; eld uses only the supplied value.) The
prex lib and the following sufxes are added to the specied name to create the modied name:
.so To nd a DLL, unless the -bstatic ag is in effect
.a To nd an archive le, unless the -dllsonly ag is in effect
To nd a DLL, the prex z and the sufx dll are also tried unless the -bstatic ag is in effect.
When the -alf ag is used, the OSS version of eld searches for DLLs in the following locations:
1. locations specied by the current -rst_l ag
2. locations specied by the current -rld_rst_l ag
3. public libraries (installed by the system operator) *
376 Hewlett-Packard Company 527188-003