rust-embedded / rust-embedded/cortex-m

Add an INFO section in the linkerscript for instrumentation

Open
#410 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1k
Forks
202
Avg merge
6d 2h
Merged PRs (30d)
2

Description

To be able to place strings and similar in areas of the ELF file that will not be loaded, eg for the use in instrumentation tools, an INFO marked section is need.
I propose we define a section for this, along the lines of the following:

SECTIONS {
  ...
  .info_section (INFO) :
  {
    *(.info_section .info_section.*);
  }
  ...
}

Exact section name can be bikeshed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the linker script used by the cortex-m builds and inspect its existing SECTIONS layout. Compare the proposed .info_section (INFO) pattern with the current script and ELF placement requirements. Done means an agreed section name and an INFO-marked section that can hold instrumentation data without being loaded.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.