Repository navigation
feat(native): resolve RISC-V ELF initializer pointers - #12041
ShuaixinHuang wants to merge 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] The reviewed changes appear safe to merge. SummaryAdds RV32/RV64 initializer pointer support while keeping imports, TLS offsets, and resolver results unresolved.
The previous TLS finding is fixed. No new correctness or security issues were found in this follow-up. No superseding change appeared in the available repository history. Tests were not rerun. Reviews (2) · Last reviewed commit: "fix(native): keep ELF TLS offsets out of..." · Reviewed by Greptile |
Summary
Replaces #11828 on main
b21db3f329. The shared ELF relocation reader uses class-aware RV32 and RV64 rules so the initializer inspector can resolve local and defined constructor/finalizer pointers. External imports remain unresolved. Defined TLS offsets are excluded from absolute initializer relocations and exact-address names, while genuine relative addresses remain available.Validation
The focused build and all 345 tests passed across the ELF relocation reader, initializer parsers, IL2CPP boundary, and compiled CLI/stdio MCP acceptance.
The old hosted shard failed. Its archived log download returned HTTP 403, so the exact old failure remains unverified. This head requests fresh hosted checks.
Compiler-produced controls from the earlier PR were not regenerated in this run. No RISC-V target was executed.
Both new RV32 and RV64 TLS tests failed before the review fix and passed afterward. Changed files also passed scoped lint and formatting.
Author readiness
Human owner: @ShuaixinHuang