What is Linker script?

A file telling the linker at which memory addresses to place each section. Embedded development uses it to lay out flash and RAM and to fix the interrupt vector address.

Field: Linkers, Loaders & Executables

Linker script in the explanations

Questions that mention Linker script (2)

  1. What is the role of a linker script used in embedded development?
  2. On a microcontroller without an OS, what does the start-up code do right after power-on before calling main?

Related terms

Microcontroller Interrupt vector table Address space layout randomization (ASLR) BSS section Dynamic linker Dynamic linking Entry point Executable and Linkable Format (ELF) Global offset table Heap memory

Back to the glossary