Skip to content

Reset linker symbol resolution state between independent runs #64

Closed

Description

@LunaStev

Current evidence

Audit baseline: master 3ac33ec1, after #11. Source: linker/src/core/symbol_table.rs:22.

Static inspection: SymbolTable::resolve mutates self.symbols without clearing or transactional replacement. Reusing a table can retain stale symbols or report duplicate globals from an earlier independent input set.

Scope

Difficulty: easy.

Define resolve as replacement or introduce an explicit incremental API. Build replacement state transactionally so failure cannot leave a partly updated table.

Completion criteria

  • Two independent resolve calls do not see stale definitions.
  • A failed resolve leaves a documented consistent state.
  • Unit tests cover successful reuse and recovery after duplicate-symbol failure.

Backlog index: #12. This issue owns only the bounded work described above.

Activity

  1. added
    bug
    good first issue
    linker
    needs testing
    priority medium
    on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuelinkerneeds testingpriority medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions