The HP Pascal/HP-UX compiler now can generate long-displacement
code sequences for referencing global data. This behavior is triggered
by the +k command-line
option and conflicts with generating Position Independent Code (PIC).
Compiling with +k
becomes necessary in the rare case when a program references a very
large number of distinct variables that are defined in shared libraries.
If this occurs, the linker issues a diagnostic message, stating
that the program should be re-compiled with the +k
option.
Note that nearly all programs can reference shared-library
data without needing to be compiled with the +k
option.