C/C++ Programmer's Guide (G06.25+)

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-19
ELD(arg)
ELD(arg)
The ELD pragma specifies arguments to be passed to the eld utility, the TNS/E linker
for PIC (Position-Independent Code).
arg is any argument accepted by the eld utility.
For details on valid syntax and semantics, see the eld Manual.
The pragma default settings are:
Usage Guidelines
On Guardian, the ELD pragma must be entered on the compiler RUN command
line for TNS/E native C/C++. On OSS, specify the ELD pragma by using the
-Weld=arg option with the c89 utility.
The ELD pragma does not actually invoke the eld linker. To invoke eld, you must
include other pragmas such as RUNNABLE, SHARED or LINKFILE. If eld is not
invoked, this pragma is ignored.
The following TNS/E native C command example shows the ELD pragma. Note
that if you specify SHARED, you would not need to also include RUNNABLE:
ccomp /in prog1/ prog1o;eld(-set highpin off -set
highrequester off),call_shared, runnable
ENV
The ENV pragma specifies the intended run-time environment of an object file.
ELD(arg)
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler N.A. N.A.
G-series TNS c89 utility N.A. N.A.
TNS/R native C and C++ compilers N.A. N.A.
Native c89 utility Not set Not set
TNS/E native C and C++ compilers Not set Not set
ENV env-option
env-option:
{ COMMON }
{ EMBEDDED }
{ LIBRARY }
{ LIBSPACE }