DLL Programmer's Guide for TNS/R Systems

Essential DLL Facility Controls
DLL Programmer’s Guide for TNS/R Systems522203-002
2-18
Default Setting and Checking of File Attributes
production DLL is to link the program and DLLs to allow load-time search-path
specifications, as described in Controlling the Loader’s Search Path at Load Time on
page 5-11.
Default Setting and Checking of File Attributes
The linker sets certain attributes of the loadfile being linked and performs certain
consistency checks. This subsection discusses those that you must know about. How
to set these and others to non-default values is covered here in How to Set Run-Time
Attributes of Your Loadfile on page 5-5.
Floating-Point Type
Setting the Floating-Point Type of a Loadfile Being Linked
The floating-point type attribute of the loadfile being linked is determined in one of two
ways.
1. If the -set floattype value option is inserted, the linker sets the floating-
point type of the output loadfile to value, where value can be ieee, tandem, or
neutral.
2. If the -set floattype value option is not inserted, then if the input linkfiles
do not contain a mixture of both ieee and tandem floating-point types, the linker
sets the floating-point type of the output loadfile to the one that is represented.
Input linkfiles of neutral floating-point type are ignored in this. However, if all
input linkfiles are neutral, then the linker sets the output loadfile to neutral.
Checking the Floating-Point Types of Linkfiles Being Linked
The linker checks for consistency of floating-point types among all input linkfiles, as
follows.
1. If the floating point type of a loadfile being linked is set by inserting the -set
floattype value option, as in (1) of Setting the Floating-Point Type of a
Loadfile Being Linked above, then if any of the linkfiles being linked has a floating-
point type that differs from value, the linker issues a warning message.
2. If the -set floattype value option is not inserted, as in (2) of Setting the
Floating-Point Type of a Loadfile Being Linked above, then if the input linkfiles
contain a mixture of both ieee and tandem floating-point types, the linker
terminates in error.
Checking the Floating-Point Types of Liblisted Libraries
When linking a PIC program, by default, the linker checks for floating-point type
consistency among the libraries from which that program imports symbols. If either the
program’s floating-point type is neutral or the floating-point type of any such library