 ld68(1)                   UNIX Programmmer's Manual                   ld68(1)


 _N_A_M_E
    _l_d_6_8 -- link editor

 _S_Y_N_O_P_S_I_S
    _l_d_6_8 [_-_d_n_r_s_S_x_X] file . . .

 _D_E_S_C_R_I_P_T_I_O_N
 _L_d_6_8 combines several object programs into one, resolves external references,
 and  searches libraries.  The object module produced by _l_d_6_8 may be executed,
 or used as input for another _l_d_6_8 run if the relocation  commands  have  been
 preserved  by  the  _-_r option.  The output from  _l_d_6_8 is left, by default, in
 _b_._o_u_t, which is made executable only if no errors occur during the load.

 _L_d_6_8 concatenates the  argument  routines  in  the  order  specified  by  the
 programer.  The entry point of _b_._o_u_t is the beginning of the first routine.

 Libraries  may  be specified as arguments.  _L_d_6_8 searches the library when it
 is encountered in the argument list, loading only those routines which define
 an unresolved external reference.  Since libraries  are  searched  once,  the
 order  of  routines  in  a library is important when more than one routine is
 referenced.  If a routine from a library references a  routine  in  the  same
 library,  the  referencing routine must preceed the referenced routine in the
 library.

 The options for _l_d_6_8 are listed below:

 _-_x discards local symbols, preserving only external  symbols  in  the  output
    symbol table.
 _-_X discards  all local symbols beginning with ".L".  This option is used with
    cc68 to discard internally  generated  labels  while  preserving  external
    symbols.
 _-_s discards all symbols and relocation commands to save space.
 _S  discards all symbols except locals and globals.
 _-_r generates relocation commands in _b_._o_u_t so that it may be used as input for
    another  _l_d_6_8  run.    _-_r  also  prevents  the  final definition of common
    symbols.
 _-_d defines common symbols even if the _-_r option is specified.
 _-_n creates a 410 file.


 _F_I_L_E_S
    b.out

 _S_E_E _A_L_S_O
    cc(1), a68(1), b.out(5)













 7th Edition                    March 20, 1981                               1
