Skip to content

Keep local linker symbols scoped to their originating object #63

Closed

Description

@LunaStev

Current evidence

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

Reproduced via SymbolTable::resolve: a local x in the first object followed by global x in the second returns Duplicate global symbol. The table keys all bindings by bare name, so local/local and global/local collisions can overwrite unrelated definitions.

Scope

Difficulty: medium.

Separate per-object local symbol identity from global resolution. Preserve object ownership when resolving relocations.

Completion criteria

  • Identical local names in different objects coexist.
  • An unrelated local cannot collide with or replace a global.
  • Tests cover both object orders and local relocation lookup.

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

Activity

  1. added
    bug
    help wanted
    linker
    needs testing
    priority high
    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

    bughelp wantedlinkerneeds testingpriority high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions