Finding Relocatable Modules
The link editor is given the name of one or more program modules that
should be included. These form the initial module set.
- For each module, the exported symbols
and imported symbols are
- If there is some imported symbol that it not defined, it is necessary
to find a relocatable module that defines it. This is done by searching
through one or more libraries, which are
collections of relocatable
files. This process typically occurs for system library routines such as
sin or writeln.
- The above processes are repeated until no undefined
If a symbol cannot be found, an unsatisfied external
error is reported.
- If any external symbol is defined more than once, a multiply
defined external symbol error is reported.