Contents
Page-10
Prev
Next
Page+10
Index
Linking Process
The task of the linker is to convert
a set of relocatable
files into an absolute file that can be executed. The link editor is
called ld in Unix; it is called automatically by compilers in
most cases.
Linking involves several steps:
- Determine the relocatable code modules that are needed.
- Allocate memory and assign absolute addresses for each module.
- Determine absolute addresses of external symbols.
- Relocate the code to produce an absolute code file.