lowRISC / lowRISC/opentitan

[tock] Examine linker and linker flags for tock kernel and apps

Open
#19,491 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Earlgrey-PROD Triaged
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

Description

Examine the linker and linker flags being used to link the the tock kernel and apps.

Currently, I believe the OpenTitan rust configuration for riscv32 targets ends up using gnu ld to link code. Tock, on the other hand, normally expects llvm's lld to perform the final link stage.

  1. Determine how to alter our riscv32 toolchain such that lld is the preferred linker.
  2. Determine and appropriate set of flags to use when linking the tock kernel and apps.

Contributor guide

Open the contributing guide

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

Start by tracing the OpenTitan riscv32 Rust toolchain configuration and comparing its current GNU ld behavior with Tock's expected LLVM lld final link stage. Determine the linker selection and flags needed for both the Tock kernel and apps, then validate that configuration in the relevant build flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, embedded-iot, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.