ld: Overview

1 
1 1 Overview
1 **********
1 
1 'ld' combines a number of object and archive files, relocates their data
1 and ties up symbol references.  Usually the last step in compiling a
1 program is to run 'ld'.
1 
1    'ld' accepts Linker Command Language files written in a superset of
1 AT&T's Link Editor Command Language syntax, to provide explicit and
1 total control over the linking process.
1 
1    This version of 'ld' uses the general purpose BFD libraries to
1 operate on object files.  This allows 'ld' to read, combine, and write
1 object files in many different formats--for example, COFF or 'a.out'.
1 Different formats may be linked together to produce any available kind
1 of object file.  ⇒BFD, for more information.
1 
1    Aside from its flexibility, the GNU linker is more helpful than other
1 linkers in providing diagnostic information.  Many linkers abandon
1 execution immediately upon encountering an error; whenever possible,
1 'ld' continues executing, allowing you to identify other errors (or, in
1 some cases, to get an output file in spite of the error).
1