linker-scripts

linker-scripts is a skill for Claude Code, Codex from mohitmishra786/low-level-dev-skills. It costs 103 tokens per session (2,669 once invoked), scanned A, original, MIT.

A guide to GNU ld linker scripts, which control where an embedded program's code and data are placed in flash memory and RAM.

In plain words
What is it for?
Use it to define memory regions, place sections, relocate code, initialize .bss and .data, preserve symbols, and diagnose linker errors.
Why use it?
It helps resolve memory-placement and startup problems, such as overflowing flash or failing to initialize program data correctly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define memory regions, place sections, relocate code, initialize .bss and .data, preserve symbols, and diagnose linker errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitmishra786/low-level-dev-skills/linker-scripts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mohitmishra786/low-level-dev-skills --skill linker-scripts
Clone the repo
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for linker-scripts

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/linker-scripts/github.svg)](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/linker-scripts)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/linker-scripts"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/linker-scripts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for linker-scripts

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/linker-scripts"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/linker-scripts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.02669
Opus 5.5 $0.00041 $0.01068
Sonnet 5.5 $0.00021 $0.00534
Haiku 4.5 $0.00010 $0.00267

Measured 9d ago against content hash 276b19d8cd48, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

linker-scripts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/embedded/linker-scripts/SKILL.md · 281 lines

How it starts

The opening of the file, as written. The whole thing — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Linker Scripts

Purpose

Guide agents through writing and modifying GNU ld linker scripts for embedded targets: MEMORY and SECTIONS commands, VMA vs LMA for code relocation, startup .bss/.data initialization, placing sections in specific regions, and using PROVIDE/KEEP/ALIGN directives.

Triggers

  • "How do I write a linker script for my MCU?"
  • "How do I place a function in a specific flash/RAM region?"
  • "What's the difference between VMA and LMA in a linker script?"
  • "How does .bss and .data initialization work at startup?"
  • "Linker error: region 'FLASH' overflowed"
  • "How do I use weak symbols in a linker script?"

Workflow

1. Linker script anatomy

/* Minimal Cortex-M linker script (works with newlib and C++) */

ENTRY(Reset_Handler)            /* entry point symbol */

MEMORY
{
    FLASH (rx)  : ORIGIN = 0x08000000, LENGTH = 512K
    RAM   (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
}

SECTIONS
{
    .text :                     /* code section */
    {
        KEEP(*(.isr_vector))    /* interrupt vector must be first */
        *(.text)
        *(.text.*)
        *(.rodata)
        *(.rodata.*)
        KEEP(*(.init))          /* newlib/crt0 prologue/epilogue */
        KEEP(*(.fini))
        *(.ARM.extab* .gnu.linkonce.armextab.*)  /* unwind data */
        . = ALIGN(4);
    } > FLASH

    .ARM.exidx :                /* unwind tables (C++ exceptions, backtraces) */
    {
        __exidx_start = .;
        *(.ARM.exidx* .gnu.linkonce.armexidx.*)
        __exidx_end = .;
    } > FLASH

    .init_array :               /* static constructors, run by __libc_init_array() */
    {
        PROVIDE_HIDDEN(__preinit_array_start = .);
        KEEP(*(.preinit_array*))
        PROVIDE_HIDDEN(__preinit_array_end = .);
        PROVIDE_HIDDEN(__init_array_start = .);
        KEEP(*(SORT(.init_array.*)))
        KEEP(*(.init_array*))
        PROVIDE_HIDDEN(__init_array_end = .);
        PROVIDE_HIDDEN(__fini_array_start = .);
        KEEP(*(SORT(.fini_array.*)))
        KEEP(*(.fini_array*))
        PROVIDE_HIDDEN(__fini_array_end = .);
        . = ALIGN(4);
        _etext = .;             /* end of flash code/constants */
    } > FLASH

    .data :                     /* VMA = RAM, LMA = FLASH */
    {
        _sdata = .;
        *(.data)
        *(.data.*)
        . = ALIGN(4);
        _edata = .;
    } > RAM AT > FLASH
    _sidata = LOADADDR(.data);  /* LMA of .data, used by startup copy loop */

    .bss (NOLOAD) :
    {
        _sbss = .;
        __bss_start__ = _sbss;  /* name newlib crt0 expects */
        *(.bss)
        *(.bss.*)
        *(COMMON)
        . = ALIGN(4);
        _ebss = .;
        __bss_end__ = _ebss;
    } > RAM

    PROVIDE(end = _ebss);       /* heap start for newlib _sbrk */

    /* Stack at top of RAM */
    _estack = ORIGIN(RAM) + LENGTH(RAM);
}

Read the full file on GitHub · 281 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · +39 lines 276b19d8cd48
  2. 2mo ago First seen · 242 lines · 103 tokens per session scan A 9e7f8d9066bb

Subscribe to this mod's changes

linker-scripts is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (304 stars, last pushed 10d ago), licensed MIT. It adds 103 tokens to every session and 2,669 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

linker-scripts compared with skills from other repositories

linker-scripts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
linker-scriptsmohitmishra786/low-level-dev-skillsSkill30410d agoMITA103Claude Code, Codex
doca-argpNVIDIA/skillsSkill4.2k2d agoApache-2.0A277Claude Code
holoscan-module-lifecycleNVIDIA/skillsSkill4.2k2d agoApache-2.0A47Claude Code, Codex
moat-cuda-to-rocmamd/skillsSkill520yesterdayMITA190Claude Code
embedded-stm32Mindrally/skillsSkill3221mo agoApache-2.0A87Claude Code
embedded-firmware-devAmethystLuna/embedded-workbenchSkill362d agoMITA59Claude Code
c-cpp-devXCode-NLP/KodaSkillsSkill275d agoMITA93Claude Code, Codex