EmbeddedRelated.com
Books
The 2026 Embedded Online Conference

THE LINKER SCRIPTING HANDBOOK: A Technical Guide to Memory Layout, Section Placement, and Bare-Metal Software Constructi

RYAN, BRIAN C. 2026


Why Read This Book

You should read this book if you need to understand what actually happens between your source code and the final binary that runs on bare metal. You will learn how linker scripts control memory layout, section placement, startup behavior, and low-level software construction so you can build reliable firmware instead of treating the linker as a black box.

Who Will Benefit

Embedded firmware engineers, RTOS developers, and systems programmers who already know C/C++ and want to master memory maps, linker behavior, and bare-metal build control.

Level: Advanced — Prerequisites: Solid C/C++ programming, basic assembly awareness, and familiarity with embedded build tools, memory-mapped hardware, and MCU memory architecture.

Get This Book

Key Takeaways

  • Interpret ELF/HEX/bin outputs and the role each plays in firmware deployment
  • Write linker scripts to place code, data, stack, heap, and interrupt vectors intentionally
  • Control section placement for bootloaders, RTOS tasks, and memory-constrained targets
  • Debug linker errors, memory overflows, and startup/init issues with confidence
  • Design memory layouts for flash, SRAM, external RAM, and specialized regions
  • Integrate linker scripts into bare-metal and cross-compiled firmware build systems

Topics Covered

  1. Introduction to Linking in Embedded Systems
  2. Object Files, Symbols, and Relocation
  3. Memory Maps and Target Architecture Constraints
  4. Linker Script Syntax and Core Directives
  5. Placing Code, Data, BSS, Stack, and Heap
  6. Startup Code, Vector Tables, and Initialization
  7. Managing Libraries, Archives, and Symbol Resolution
  8. Custom Memory Regions and Multi-Region Firmware
  9. Bootloaders, Firmware Images, and Image Formats
  10. RTOS and Bare-Metal Memory Organization
  11. Debugging Linker and Memory Layout Problems
  12. Advanced Techniques for GCC/LD and Cross-Compilation

Languages, Platforms & Tools

CAssemblyLinker ScriptARM Cortex-MRISC-VGeneric bare-metal microcontrollersGNU ldGCCbinutilsELF utilities

How It Compares

More focused and practical than Linkers & Loaders by John R. Levine for embedded firmware work, and more linker-centric than general embedded systems texts like Making Embedded Systems.

Related Books

Bryant, Randal, O'Hallaron,...
The 2026 Embedded Online Conference