Note on Linker Script file
In an embedded system, especially in bare metal systems, while programming, we come across a file called linker script file ( .lds or .ld)
Curious to know what is the purpose of this file is, let’s see.?
The Main purpose of the linker script file is to describe how the different sections in the input files ( object files ) should be mapped into the output file also to control the memory layout of the output file ( executable file).?
Let’s go in deep. In bare metal embedded systems, linker does 2 jobs while linking multiple object files.?
Note:
In Operating system hosted environment, linker does linking only, locator job is done by OS ( loader ).