16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Operands<br />

-f filename<br />

Specifies a file that contains a list of the names of object and archive files<br />

to be used as input. The listed files will be used in addition to any files<br />

specified as operands.<br />

-L directory<br />

Specifies the directories to be used to search for archive libraries specified<br />

by the -l operand. The directories are searched in the order specified, and<br />

then in the directories specified by the _LD_LIBDIRS environment variable<br />

or its default. You cannot specify an MVS data set as an archive library<br />

directory.<br />

-l libname<br />

Specifies the name of an archive library. ld searches for the file<br />

liblibname.a in the directories specified on the -L option and then in the<br />

directories specified by the _LD_LIBDIRS environment variable or its<br />

default. The first occurrence of the archive library is used.<br />

You can also specify an MVS data set; you must specify the full data set<br />

name, because there are no rules for searching library directories.<br />

The data set specified must be a C370LIB object library or a load library. If<br />

a data set specified as a library has undefined (U) record format, then it is<br />

assumed to be a load library. For more information about the z/<strong>OS</strong> C/C++<br />

Object Library Utility, see z/<strong>OS</strong> XL C/C++ Programming Guide. For more<br />

information about how load libraries are searched, see Usage Notes.<br />

-O name[, name]...<br />

Specifies the name of the code topic to be ordered to the beginning of the<br />

executable. The binder control statement order will be generated. The<br />

default value of -O can be provided by the environment variable<br />

_LD_ORDER (see Environment Variables).<br />

-o outfile<br />

Specifies the name of the executable file produced by ld. The default output<br />

file is a.out.<br />

-S syslibdset<br />

Specifies the name of a system library (SYSLIB) data set that will be used<br />

to resolve symbols.<br />

-u function<br />

Specifies the name of the function to be added to the list of external<br />

symbols to be resolved. This option can be useful if the only input is archive<br />

libraries. If this option is not specified, no external symbol is added.<br />

-V This verbose option produces binder listings and directs them to stdout.<br />

-v This verbose option causes pseudo-JCL to be written to stdout before the<br />

binder is run. It provides information about exactly which binder oiptions are<br />

being passed, and also which data sets are being used.<br />

-X sidefile<br />

Specifies the name of a side deck file or data set that ld will write to when<br />

producing a DLL (dynamic link library).<br />

file.a Specifies the name of an archive file, as produced by the ar command, to<br />

be used by the binder for resolving external references. To specify an MVS<br />

data set name, precede the name with double slash (//), in which case the<br />

last qualifier of the data set name must be LIB. The data set specified must<br />

ld<br />

Chapter 2. Shell command descriptions 335

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

Saved successfully!

Ooh no, something went wrong!