22.12.2012 Views

z/TPF Program Management - IBM

z/TPF Program Management - IBM

z/TPF Program Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LDFLAGS link options<br />

v See the tpftools/include_ztpf/maketpf.rules_set_flags* files for more<br />

information about options in the Make<strong>TPF</strong> tools.<br />

v For more information about the maketpf configuration file, enter man<br />

maketpf.cfg on your Linux build system.<br />

v For more information about makefiles, enter man maketpf.mak on your Linux<br />

build system for a complete list of makefile variables that can be coded.<br />

The following link options can be set using the LDFLAGS _$(APP) variable in the<br />

makefile:<br />

v -Xlinker --defsym -Xlinker CGCC_31BIT=0<br />

This option creates a symbol in the shared object that indicates the shared object<br />

must be loaded below the 2-GB bar and in a 31-bit core resident program area<br />

(CRPA) virtual address area. This option gets propagated online through the<br />

program ordinal (ORDN) record header without being set in the program attribute<br />

table (PAT).<br />

v -Xlinker --defsym CGCC_FastPathStub=0<br />

This option creates a symbol in the shared object that can be used to flag a<br />

condition in the program. The fast path indicator is a core-only value in the PAT<br />

and gets propagated online through the program ordinal (ORDN) record header.<br />

The fast path indicator is valid in the PAT when the program is fetched.<br />

When this option is applied to shared objects that contain library functions, the<br />

linkage path is reduced when calling these functions. This reduction of path<br />

length provides the following benefits:<br />

– Improved system performance.<br />

– The trace name field CE3TRNAME is not changed across function calls,<br />

which are viewed as extensions of the calling shared object.<br />

Note: Only use this option for shared objects that contain fast path linkage<br />

libraries.<br />

v -Xlinker --defsym -Xlinker CGCC_COW_CRPA=0<br />

This option creates a symbol in the shared object that indicates the shared object<br />

must be loaded in the 31-bit or 64-bit standard CRPA virtual address area.<br />

Note: Do not use this option for programs that update static data, import data<br />

from other programs, or have global constructors.<br />

v -Xlinker --defsym -Xlinker CGCC_COW_CRPA=1<br />

This option creates a symbol in the shared object that indicates the shared object<br />

must be loaded in the 31-bit or 64-bit copy-on-write CRPA virtual address area.<br />

For more information about Makefiles, enter man maketpf.mak on your Linux build<br />

system for a complete list of Makefile variables that can be coded.<br />

Make<strong>TPF</strong> build solution 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!