The linkage editor works with object files. This is when the compilation reaches the last stage and all the code has been converted into libraries. At this point, these libraries have to be linked together.
When there are variables and their references used in different program files, the overall execution requires them to be linked to produce the result. The variable/object value and its references used somewhere else is a simple example of binding.
When the reference of a relocatable object doesn't match the definition the object is considered unresolved. It can result in errors. The linkage editor requires to restore all the unresolved addresses with the ones that are related to actual variables of the program.
The compiler passes the information related to memory to the linkage editor in the form of a script.
Get Answers For Free
Most questions answered within 1 hours.