The Language Environment prelinker is started under TSO/E through an IBM-supplied CLIST called CPLINK, which invokes the prelinker and creates an executable module. If you want to create a reentrant C/C++ load module, link-edit C/C++ or COBOL object modules using long names, or create a DLL application, you must use CPLINK instead of the TSO/E LINK command.
The CPLINK command has the following syntax:
Syntax >>-CPLINK--OBJ--(--+------------------+--)----------------------> | .-,------. | | V | | '-'----object-+--'-' >--+-----------------------------------+------------------------> '-POPT--(--+-------------------+--)-' | .-,-------. | | V | | '-'----options-+--'-' >--+-----------------------------------+------------------------> '-PLIB--(--+-------------------+--)-' | .-,-------. | | V | | '-'----libname-+--'-' >--+-----------------------------------+------------------------> '-LOPT--(--+-------------------+--)-' | .-,-------. | | V | | '-'----options-+--'-' >--+----------------------------------+-------------------------> '-LIB--(--+-------------------+--)-' | .-,-------. | | V | | '-'----libname-+--'-' >--+----------------------------------+------------------------>< '-LOAD--(--+------------------+--)-' | .-,------. | | V | | '-'----object-+--'-'
CPLINK OBJ('dsname') POPT('MAP')...
When the prelink MAP option is specified (as opposed to the link option MAP), the prelinker produces a file showing the mapping of static external data. This map shows name, length, and address information. Any unresolved references or duplicate symbols during the prelink step are displayed in the map.
CPLINK OBJ('dsname') POPT('MAP') LOPT('NOMAP...')