PowerAda 77

From OC Systems Wiki!
Jump to: navigation, search

(77) The effect of pragma Linker_Options.

See B.1(37).

The string specified by each legal occurrence of pragma Linker Options is recorded in a library database associated with the compilation unit in which it appears. The elaboration order of these compilation units, and the order in which multiple pragmas occur within a compilation unit, define the reverse order in which these strings appear in the AIX ld command which is executed to link the program.

The intended effect of this order is such that if the same linker symbol is defined in two different object modules specified by pragmas Linker_Options in two different compilation units, the symbol will be resolved that defined in the object module named in the unit which was elaborated last, and hence likely compiled more recently.