Table 4 flags that are supported

To

Use the flag

 

 

Enable trap on invalid floating-point operations.

V

 

 

Disable trap on invalid floating-point operations.

v

 

 

Enable trap on divide by zero.

Z

 

 

Disable trap on divide by zero.

z

 

 

Enable trap on floating-point overflow.

O

 

 

Disable trap on floating-point overflow.

o

 

 

Enable trap on floating-point underflow.

U

 

 

Disable trap on floating-point underflow.

u

 

 

Enable trap on floating-point operations that produce inexact results.

I

 

 

Disable trap on floating-point operations that produce inexact results.

i

 

 

Enable sudden underflow (flush to zero) of denormalized values.

D

 

 

Disable sudden underflow (flush to zero) of denormalized values.

d

 

 

All trapping behaviors are disabled by default.

In addition to the flags, you can specify values for the rounding mode. The following values are available:

RN

Round to nearest. This is the default value.

RU

Round upward toward +infinity.

RD

Round downward toward -infinity

RZ

Round toward zero, that is, truncate.

For more information on the +FP option, see the HP-UX Floating Point Guide.

Allocating Storage for Hidden Common Symbols with +alloc_hidden_commons

You can use the +alloc_hidden_commons option in combination with the -roption to force the allocation of storage for hidden common symbols. The -roption is used to produce a relocatable object file that can be used in subsequent link commands. By default, storage is not allocated for common symbols when linking with -r. The -doption can be use with -rto force the allocation of storage for all common symbols. The +alloc_hidden_commons option provides finer control by allocating storage for hidden common symbols. If -dand +alloc_hidden_commons are both specified in the same link command, the -doption will take precedence.

The +alloc_hidden_commons option provides a safer alternative to -d, because it only allocates storages for common symbols that are not visible in subsequent links. This prevents any problems that might result from allocating storage for non-hidden commons, and provides consistent handling of hidden commons and hidden data.

Using Linker Commands 51