nld Utility
nld and noft Manual — 520384-003
2 -8
Changing the Target Environment
Changing the Target Environment
The target environment is the environment in which you intend to run the program file.
By default, the Guardian version of
nld
builds files intended to run in the Guardian
environment and the OSS version of
nld
builds files intended to run in the OSS
environment.
To build a program file intended to run in the Guardian environment using the OSS
version of
nld
, specify:
-set systype guardian
To build a program file intended to run in the OSS environment using the Guardian
versions of
nld
, specify:
-set systype oss
Example 2-9
, in the OSS environment, links the object files names
obj6.o
and
obj7.o
into a program named
prog
that you intend to run as a Guardian process.
Creating Loadfiles and Linkfiles
A loadfile cannot be linked to a new object file, it can be used only as input to
nld
with
options that modify an existing loadfile. A linkfile can be used as
nld
input again.
nld
creates a loadfile if you do not specify the
-r
flag. If you do specify the
-r
flag,
nld
creates a linkfile.
Note.
In some cases, such as when C/C++ programs include
stdio.h
, setting the target
environment with the
-set systype
option might result in a program that executes incorrectly
in the specified environment. In such cases, you must specify the
systype
option on the
compiler command line to ensure the correct code is created.
Example 2-9. Creating a Program for the Guardian Environment (OSS)
nld obj6.o obj7.o -o prog -set systype guardian
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 ...