nld Utility
nld and noft Manual — 520384-003
2- 16
Specifying SRLs
In the Guardian environment, each processor loads public SRLs at startup time from
the active
SYSnn
subvolume. The
SYSnn
subvolume, located on
$SYSTEM
, contains a
version of the operating system image for a particular node. A node can have more
than one
SYSnn
subvolume, but only one active (running)
SYSnn
subvolume. D42 and
later product versions of
nld
automatically select the active
SYSnn
subvolume.
Previous versions of
nld
required you to specify the active
SYSnn
subvolume. (To
determine the
SYSnn
subvolume active on a particular node, use the Guardian
command
STATUS 0,0
.)
When you use
nld
to build a program file,
nld
fixes up references to the SRLs that
you have specified. You can also use
nld
to repeat the fix-up process on an existing
program to use a new version of an SRL or let the operating system update the
references when you execute the program.
The SRLs required to create a program file depend on the run-time resources a
program uses.
Subsections:
•
Specifying SRLs
on page 2-16
•
Determining Which SRLs Programs Require
on page 2-17
Specifying SRLs
You can specify SRLs on the
nld
command line directly and with the options
-l or -lib
on page 3-7. Using options is usually easier to understand and more flexible. A file
specified in a
-l
or
-lib
option must be an SRL or an archive.
In the Guardian environment, an SRL often has a filename that starts with Z and ends
with SRL, such as ZCOBSRL.
In the OSS environment, an SRL often has a filename that starts with
lib
and ends
with the filename suffix
.srl
, such as
libc.srl
.
nld
uses SRLs to resolve undefined symbols after all object files and archive files
specified on the command line have been used.
nld
uses SRLs in the order specified
on the command line and in
-l
or
-lib
options.
You can specify the Guardian subvolumes or OSS directories where
nld
searches for
SRLs with the option
-L or -libvol
on page 3-8.
The
-bdynamic
and
-bstatic
flags determine if
nld
performs dynamic or static
linking, respectively. See
Dynamic and Static Linking
on page 2-28 for details.
Summary of Contents for nld
Page 12: ...Contents nld and noft Manual 520384 003 x ...
Page 16: ...What s New in This Manual nld and noft Manual 520384 003 xiv Miscellaneous ...
Page 22: ...About This Manual nld and noft Manual 520384 003 xx Change Bar Notation ...
Page 28: ...Introduction to the Utilities nld and noft Manual 520384 003 1 6 strip ...
Page 60: ...nld Utility nld and noft Manual 520384 003 2 32 Declaration and Definition ...
Page 78: ...nld Options nld and noft Manual 520384 003 3 18 y ...
Page 90: ...noft Utility nld and noft Manual 520384 003 4 12 Debugging With noft ...
Page 150: ...strip Utility nld and noft Manual 520384 003 7 2 ...
Page 242: ...nld Diagnostic Messages nld and noft Manual 520384 003 10 82 Informational Messages ...
Page 278: ...noft Diagnostic Messages nld and noft Manual 520384 003 11 36 Syntax Errors ...
Page 286: ...ar Diagnostic Messages nld and noft Manual 520384 003 12 8 ...
Page 314: ...Sample nld and noft Session nld and noft Manual 520384 003 A 28 LISTSRLFIXUPS ...
Page 330: ...Index nld and noft Manual 520384 003 Index 10 Special Characters ...