Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
eld(1) OSS Shell and Utilities Reference Manual
Saving Temporary Files
eld creates temporary working files while it processes command line or obey file information.
These temporary working files are given names of the form ZLDAFnnn (for all files except import
libraries and private DLL registry files), ZLDAInnn (for import libraries), or ZLDARnnn (for
private DLL registry files), where:
nnn is a unique sequentially assigned decimal number, beginning with 000
To create a final permanent file with the same name as an existing file, eld must first remove the
existing file. If eld processing is interrupted when removing and recreating the final file, the work-
ing file is preserved as a file named ZLDnnn.
The temp_i, -temp_o,or-temp_r flag allows you to save the completed working file as a tem-
porary regular file with a known filename before the original file is removed. The temporary file is
itself removed after the final permanent file is completely written.
Finding Libraries
If you specify an absolute or relative pathname for a flag’s filenamen value, no search occurs. eld
opens the specified file to see if it is a linkfile, an archive, or a DLL. If the file cannot be opened,
an error occurs.
If you specify an unqualified filename (a filename value that does not contain a / character) for the
-l or -lib flag, the OSS version of eld attempts to find the file. eld searches for libraries in the fol-
lowing locations when resolving the values specified for the -l or -lib flags:
1. Locations specified by the current -first_l flag
2. Public libraries (installed by the system operator) ***
3. Locations specified by the current -libvol and -L flags
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 flag is in effect,
and the steps marked by two asterisks (**) are skipped only when the -bstatic flag 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 specified file. If it cannot,
it modifies the supplied value and tries to open a file with the modified name. (Unqualified names
specified in the Guardian file system, /G, are not modified; eld uses only the supplied value.) The
prefix lib and the following suffixes are added to the specified name to create the modified name:
.so To find a DLL, unless the -bstatic flag is in effect
.a To find an archive file, unless the -dllsonly flag is in effect
To find a DLL, the prefix z and the suffix dll are also tried unless the -bstatic flag is in effect.
When the -alf flag is used, the OSS version of eld searches for DLLs in the following locations:
1. locations specified by the current -first_l flag
2. locations specified by the current -rld_first_l flag
3. public libraries (installed by the system operator) *
3−76 Hewlett-Packard Company 527188-003