ssh-http-proxy-connect(1)
ssh-socks5-proxy-connect(1)
- link-editor for object files
/usr/ccs/bin/ld [-64] [-a | -r] [-b] [-c name] [-C] [-G] [-i] [-m] [-s] [-t] [-V] [-Bdirect | nodirect] [-B dynamic | static] [-B group] [-B local] [-B eliminate] [-B reduce] [-B symbolic] [-d y | n] [-D token,]... [-e epsym] [-F name | -f name] [-h name] [-I name] [-L path] [-l x] [-M mapfile] [-N string] [-o outfile] [-p auditlib] [-P auditlib] [-Q y | n] [-R path] [-S supportlib] [-u symname] [-Y P,dirlist] [-z absexec] [-z allextract | defaultextract | weakextract] [-z combreloc] [-z defs | nodefs] [-z direct | nodirect] [-z endfiltee] [-z finiarray=function] [-z globalaudit] [-z groupperm | nogroupperm] [ rescan] [-z text | textwarn | textoff] [-z verbose] filename... that are provided as arguments are combined to produce a static executable file. If the -r option is specified, relocatable object files are combined to produce one relocatable object file. See Static Executables..
If any argument is a library, ld by default searches the library exactly once at the point the library is encountered on the argument list. The library can be either a shared object or relocatable archive. See ar.h(3HEAD)). use of the -z rescan option..
No command-line option is required to distinguish 32–bit objects or 64–bit objects. The link-editor uses the ELF class of the first relocatable object file that is found on the command line, to govern the mode in which to operate. The mixing of 32–bit objects and 64–bit objects is not permitted. See also the -64 option. Note, that the link-editors capability to process static linking options, and the processing of archive libraries, remains unchanged.
The following options are.
-B nodirect prevents any direct binding to the interfaces offered by the object being created. The object being created can continue to directly bind to external interfaces by specifying the -z direct option., or having the LD_BIND_NOW environment variable in effect. See the:
dirlist1;dirlist2
If ld is called with any number of occurrences of -L, as in:
ld ... -Lpath1 ... -Lpathn ...
then the search path ordering is:
dirlist1 path1 ... pathn dirlist2 LIBPATH input:
ld $LD_OPTIONS ... other-arguments ... insure compatibility with existing program development environments. Historic defaults are called out wherever possible in this manual. For a description of the current recommended options, see the Link-Editor Quick Reference in the Linker and Libraries Guide.
If the file being created by ld already exists, the file is truncated after all input files have been processed. The existing file might be prematurely terminated as the output files image is created. This situation can be avoided by removing the output file before performing the link-edit. This removal is not detrimental to the running process. The removal frees up the file system namespace, not the actual disk space, for the new output file creation. The disk space of a removed file is freed when the last process referencing the file terminates.