![HP nld Скачать руководство пользователя страница 56](http://html.mh-extra.com/html/hp/nld/nld_manual_165146056.webp)
nld Utility
nld and noft Manual — 520384-003
2- 28
Dynamic and Static Linking
If the
-verbose
flag is specified,
nld
writes to its output listing the locations where it
found an SRL or archive file. (The Guardian version of
nld
has
-verbose
set by
default.) For more information, see
-verbose on page 3-16
.
In
Example 2-12
, the Guardian version of
nld
performs dynamic linking (the default)
and searches for the C run-time library (ZCRTLSRL) and the CRE library (ZCRESRL)
SRLs in the subvolume with the current version of the operating system image.
In
Example 2-13
, the OSS version of
nld
performs dynamic linking (the default) and
searches for the C run-time library (ZCRTLSRL) and the CRE library (ZCRESRL)
SRLs in the subvolume with the current version of the operating system image. This
subvolume is in the Guardian file system although
nld
accesses the subvolume using
the OSS
/G
pathname syntax. Because the files are in the Guardian file system,
nld
does not modify the simple name.
In
Example 2-14
, the OSS version of
nld
performs dynamic linking (the default) and
searches for the COBOL run-time library (ZCOBSRL) and the CRE library (ZCRESRL)
SRLs in the subvolume with the current version of the operating system image.
Dynamic and Static Linking
The flags
-bdynamic
on page 3-3 and
-bstatic
on page 3-4 specify dynamic and static
linking, respectively.
If the
-bdynamic
flag is specified,
nld
first searches for a shared run-time library
(SRL). If an SRL cannot be found,
nld
searches for an archive file. If neither file is
found,
nld
issues an error message.
nld
follows this process in each location (a
subvolume or directory) it is searching before moving on to the next location.
If the
-bstatic
flag is specified,
nld
searches for an archive file.
nld
does not
search for an SRL. If the archive file cannot be found,
nld
issues an error message.
Both the
-bdynamic
flag and the
-bstatic
flag can be specified in a single
nld
invocation. Thus, it is possible to perform dynamic linking for some
-l
and
-lib
options and static linking for others.
Example 2-12. Searching for ZCRTLSRL and ZCRESRL (Guardian)
NLD OBJECTA OBJECTB -l ZCRTLSRL -l ZCRESRL
Example 2-13. Searching for ZCRTLSRL and ZCRESRL (OSS)
nld objecta.o objectb.o -l ZCRTLSRL -l ZCRESRL
Example 2-14. Searching for ZCOBSRL and ZCRESRL (OSS)
nld a.out b.out -l ZCOBSRL -l ZCRESRL
Содержание nld
Страница 12: ...Contents nld and noft Manual 520384 003 x ...
Страница 16: ...What s New in This Manual nld and noft Manual 520384 003 xiv Miscellaneous ...
Страница 22: ...About This Manual nld and noft Manual 520384 003 xx Change Bar Notation ...
Страница 28: ...Introduction to the Utilities nld and noft Manual 520384 003 1 6 strip ...
Страница 60: ...nld Utility nld and noft Manual 520384 003 2 32 Declaration and Definition ...
Страница 78: ...nld Options nld and noft Manual 520384 003 3 18 y ...
Страница 90: ...noft Utility nld and noft Manual 520384 003 4 12 Debugging With noft ...
Страница 150: ...strip Utility nld and noft Manual 520384 003 7 2 ...
Страница 160: ...Converting From Binder to nld and noft nld and noft Manual 520384 003 9 8 Comparing Binder Commands to noft Options ...
Страница 242: ...nld Diagnostic Messages nld and noft Manual 520384 003 10 82 Informational Messages ...
Страница 278: ...noft Diagnostic Messages nld and noft Manual 520384 003 11 36 Syntax Errors ...
Страница 286: ...ar Diagnostic Messages nld and noft Manual 520384 003 12 8 ...
Страница 314: ...Sample nld and noft Session nld and noft Manual 520384 003 A 28 LISTSRLFIXUPS ...
Страница 330: ...Index nld and noft Manual 520384 003 Index 10 Special Characters ...