What is Symbol resolution?
The linker step that matches each function or variable name referenced in a file with its definition. No definition gives an undefined-reference error; more than one gives a multiple-definition error.
The linker step that matches each function or variable name referenced in a file with its definition. No definition gives an undefined-reference error; more than one gives a multiple-definition error.
The linker matches each name (symbol) referenced in the object files with a definition somewhere (symbol resolution), lays out every file's code and data to decide final addresses, and rewrites placeholder addresses in instructions with the right values (relocation).
What is the main role of a linker?Linker Relocation Address space layout randomization (ASLR) BSS section Dynamic linker Dynamic linking Entry point Executable and Linkable Format (ELF) Global offset table Heap memory