Which of the following function is performed by the loader?
Relocation function is performed by the loader.
The modification records are used for relocation so that the linking and relocation functions are performed using the same mechanism.
Loader:-
A loader is a system program, which takes the object code of a program as input and prepares it for execution. Programmers usually define the program to be loaded at some predefined location in the memory. But this loading address given by the programmer is not being coordinated with the OS.
Relocation:-
Relocationis the process of assigning load addresses to position-dependent, but locatable code of a program and adjusting the code and data in the program to reflect the assigned addresses.