Skip to content

Add Reader-based validation for PLT relocations and dynamic tags #39

Description

@katsyoshi

Goal: reduce ad-hoc readelf checks by adding Reader-level validation helpers for PLT-related linkage data.

Scope:

  • Validate rela.plt entries are structurally correct (symbol index, type, offset).
  • Validate consistency of dynamic tags: DT_JMPREL, DT_PLTREL, DT_PLTRELSZ, DT_PLTGOT.
  • Use helper(s) in linker tests (including plt-call test).

Acceptance criteria:

  • Tests can assert PLT relocation/tag sanity without shelling out to readelf for core checks.
  • Helper errors are specific enough to pinpoint broken fields.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions