linker-script

Solid

GNU linker script generation and optimization for embedded systems. Expert skill for memory layout definition, section placement, multi-image linking, and memory protection configuration.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Linker Script Skill Expert skill for GNU linker script generation and optimization for embedded systems. Provides deep expertise in memory layout definition, section placement, symbol management, and advanced linking scenarios. ## Overview The Linker Script skill enables comprehensive linker script development for embedded systems, supporting: - Memory region definition for MCU targets - Section placement and alignment configuration - Symbol generation for bootloader/application interfaces - Multi-image linking (bootloader + application) - Overlay and bank switching support - Custom section creation and management - Fill pattern and checksum placement - MPU-aligned region configuration ## Capabilities ### 1. Memory Region Definition Define memory regions based on MCU specifications: ```ld /* Example: STM32F407 Memory Layout */ MEMORY { /* Flash memory regions */ FLASH_BOOT (rx) : ORIGIN = 0x08000000, LENGTH = 32K /* Bootloader */ FLASH_APP (rx) : ORIGIN = 0x08008000, LENGTH = 480K /* Application */ FLASH_DATA (r) : ORIGIN = 0x08080000, LENGTH = 128K /* Config/OTA */ /* RAM regions */ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K /* Main SRAM */ CCMRAM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K /* Core-coupled RAM */ BKPSRAM (rw) : ORIGIN = 0x40024000, LENGTH = 4K /* Backup SRAM */ } ``` ### 2. Section Placement Configuration Configure section placement with alignment requirements: ```ld SECTIONS { /* Vector table at...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills