Skip to content

fix(tools): cross-check ELF audit metadata - #19817

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
DonRyuzaki:codex/audit-elf-loader-metadata-20261113
Nov 14, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
DonRyuzaki:codex/audit-elf-loader-metadata-20261113

Conversation

@DonRyuzaki

Copy link
Copy Markdown
Contributor

What

Refuse contradictory section-derived and runtime ELF import, export and dependency inventories. Currently changing only a section-table symbol pointer can hide unchanged PT_DYNAMIC imports and publish a false clean audit.

When both views exist, read runtime symbols through the program headers/dynamic addresses and compare inventories, including weak-import bindings. Keep section-only inputs, matching hashless sectioned inputs and dependency-only dynamic inputs supported. Sectionless hash requirements are unchanged. Without a runtime hash, the cross-check still uses the validated section symbol count; it does not establish an unknown runtime symbol-table tail.

Tested

Windows 11, Python 3.12, Release relinker-only; base 6fd2999417948562be633aa71629bab45d0e8b81, head 47e0804139ab117fb3c7fa394664b01fa798354b, tree 50496463ec3ea8260f046b28378dca629582572c.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions github-actions Bot added the docs label Nov 14, 2026
@JJenkx

JJenkx commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Windows check of head 47e0804139. Setup: Windows 11 Enterprise 22621, Python 3.15. Tree: the merge of the head onto main 2ac33b4563, run from an extract of tools/.

python tools/tests/test_import_audit.py: Ran 200 tests, OK (3 skipped). main alone runs 197, OK (3 skipped).

AI-assisted: yes.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 4847 docs/user/USAGE.md
PR 5925 docs/user/USAGE.md
PR 6924 docs/user/USAGE.md
PR 7642 docs/user/USAGE.md
PR 9345 docs/user/USAGE.md
PR 9508 docs/user/USAGE.md
PR 10193 docs/user/USAGE.md
PR 10861 docs/user/USAGE.md
PR 12678 docs/user/USAGE.md
PR 12746 docs/user/USAGE.md
PR 13928 docs/user/USAGE.md
PR 13929 docs/user/USAGE.md
PR 15245 docs/user/USAGE.md
PR 15456 docs/user/USAGE.md
PR 15973 docs/user/USAGE.md
PR 16354 docs/user/USAGE.md
PR 17557 docs/user/USAGE.md
PR 17558 docs/user/USAGE.md
PR 18030 docs/user/USAGE.md

@oneandonlydean
oneandonlydean merged commit 784e932 into boykopovar:main Nov 14, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants