Repository navigation
Conversation
Retain MIPS ELF identity and interpretation through Evidence and snapshots. Keep provider admission bounded to ELF32 ET_EXEC o32 MIPS32r2, without implicitly widening Hopper, IDA or Windows P0 coverage. Add source-owned fixtures and an optional real-provider verifier; real Ghidra verification remains pending in this contribution environment. Refs morluto#718
Reject explicit EF_MIPS_FP64 and EF_MIPS_NAN2008 declarations until their semantics have a real-provider verification lane. Add PSP PRX/Allegrex, o64/EABI and floating-point-mode refusal regressions. Document that the header gate is not a full .MIPS.abiflags check and advance the profile lane identity to invalidate older interpretation bindings. Validation: 24 standalone checks against the transpiled production profile module passed; the two new flag cases failed before this change. Clang 17 and LLD compiled the source-owned fixture for both endian targets. The complete Vitest/typecheck suite and real Ghidra verification remain pending. Refs morluto#718; PSP support remains follow-up morluto#1330.
Read bounded ELF32 PT_MIPS_ABIFLAGS and SHT_MIPS_ABIFLAGS records through the already-open target handle. Preserve declared ABI fields, reject conflicting/duplicate/truncated records, and keep missing records unknown. Wire inspection into target resolution before provider selection. Require compatible declarations for the deliberately narrow Ghidra lane and bind all ABI fields into profile identity (v3) for snapshot invalidation. Clang 17 produced eight source-owned fixtures spanning both byte orders and FPXX/FP32/FP64/soft-float modes with identical ELF header flags. The new reader and policy distinguish them. 24 focused regression test bodies passed after TypeScript transpilation using node:test in place of Vitest; strict isolated TypeScript checking of the reader and target/result types passed. These are limited checks, not full Vitest/project typechecking or real-Ghidra verification, which remain pending. Advances morluto#718. PSP/Allegrex remains morluto#1330 follow-up.
3 of 5 tasks
…avior Keep ELF targets out of Hopper Mach-O preparation and scope existing PE fixture types correctly. Move ABI tests into the filesystem boundary lane, use shared cleanup, add resolver regressions, apply the pinned formatter, and register the real MIPS verifier through the existing package-command pattern. Validated with repository-pinned Node/npm, check:ci, actual focused Vitest, discovery and docs:check. Real Ghidra conformance remains pending.
Cross-check the source-owned fixture with bounded GNU readelf inspection, compare production ELF/ABI interpretation and independent symbol addresses, and verify effective Ghidra language/compiler identity through existing public operations. Add a source-owned fixed-encoding probe for immediate and conditional branch checks plus global/string byte assertions. Add 16 assertion/producer-boundary regression cases without widening production admission, changing provider contracts, or introducing proprietary dependencies. Local focused suite: 99 passed, one existing root-permission test skipped. Typecheck, lint/module boundaries, formatting and 700-file discovery pass; full hosted checks and real Ghidra verification remain pending for this checkpoint.
…gration The conflict-free upstream merge failed TypeScript compilation because includes on the union of MIPS-only and other architecture arrays requires never. Use equality-based membership without casts or changing accepted native hosts. Extend the existing native-decompiler rejection table with a MIPS executable at a Linux x64 tool path; retain upstream FAT and unknown-header behavior. Hosted verification follows this commit; no success is claimed yet.
jaelliot
marked this pull request as ready for review
October 10, 2026 05:03
Owner
Author
|
Closing the historical fork duplicate. Its exact head |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Development review checkpoint
Current source head:
eeeada5663fcb58e21f9a642bbac50ef70d16310.Upstream revision incorporated and tested:
81cdafc132c7ba3bd6e12b1169f9e3687025d07b.The same branch backed upstream morluto/rea#1362, which was merged into upstream
mainon October 15, 2026. This fork PR remains open as a historical development checkpoint; the source branch has not been changed by this description update.Diff interpretation: this fork PR still targets the deliberately unchanged fork
mainat1ac8389c5c1f75faf8d7f2f3faf2f24febad5fea. Its comparison therefore includes incorporated upstream work. The focused MIPS contribution diff is in upstream morluto#1362, which compares against upstream main. The larger fork diff is not newly authored feature scope.Contribution boundary
This advances the generic MIPS ELF portion of #718, not the complete firmware roadmap. PSP/Allegrex #1330 and the separate PSP spike in fork #2 remain follow-ons.
The contribution recognizes EM_MIPS and preserves ELF/ABI identity through target parsing, Ghidra profile selection, public schemas, Evidence and snapshots. Initial verified admission remains ELF32 ET_EXEC, explicit o32/MIPS32r2, either byte order, and compatible ABI records. Unsupported variants and missing declarations are not guessed; Hopper/IDA and Windows P0 coverage are not widened.
Source-owned fixtures and
verify:ghidra:mipstest real public CLI/MCP analysis. GNU readelf is a test-time independent reader, not a new provider. No new MCP tool, paid engine, automatic installer, emulator or game data is introduced.Upstream synchronization
2b7f9586d4f5aad0b4220de2f8971aac5d1c00aemerges upstream81cdafc...into the prior tested contributionadf1cda..., preserving both parent histories. The merge had no textual conflicts, but initial run 38022127678 exposed a real TypeScript integration failure.Upstream's native-Ghidra-tool architecture fallback used
.includes(...)on a union of architecture arrays widened by MIPS, making its argument typenever.eeeada5changes that check to equality-based.some(...)membership without casts or changed host support. One regression extends the existing rejection table with a MIPS executable at the Linux x64 decompiler path.Upstream regular-file identity/stability, snapshot target validation, package/lockfile and architecture guards remain in place. No CI gate, threshold or ignore rule was weakened. Fork-only preparation and verification workflows remain on
ci/mips-upstream-sync, outside the contribution source branch.After hosted validation passed, the actual feature branch was advanced using a non-force update with its expected old head checked. The separate PSP source branch was not changed.
Completed validation of eeeada5
Run 38022307570, job 114125761674, completed successfully. It explicitly checks out
eeeada5663fcb58e21f9a642bbac50ef70d16310, not its orchestration commitc36f1e9c8b5b0a0fbdbf845784f86f37f2d0568e.check:ciOnly one new test was added in this integration fix. The focused selection now includes the existing installation suite in addition to the seven previously affected suites. Upstream changed its overall test inventory; no suite was deleted by this integration correction.
Real-provider configuration: Linux x64, checksum-verified Ghidra 12.1.4, Temurin 21.0.12.1+1, Clang/LLD 18.1.3, GNU readelf 2.42. Verification covered independent ELF/ABI/symbol facts, observed language/compiler, source hashes, fixed instruction bytes/immediate/branch destination, known global/marker, direct call, Evidence/profile binding, snapshot reopening and equivalent CLI analysis. Neither target was executed; selected decoded properties and pseudocode liveness are not complete semantic proof.
Ordinary PR CI and historical evidence
The source-branch update triggered ordinary PR CI 38022753836, which completed successfully. This status is distinct from the focused real-provider validation above; it is not a claim of new PSP or hardware coverage.
Historical validation remains tied to
adf1cda...:e9b8bfabfdcb2c48057dad1d0299ed3fd779aa4cagainst the old fork base, not the newly incorporated upstream revision.adf1cda....Remaining gates
Upstream morluto#1362 is merged. This open fork checkpoint does not close morluto#718, add production PSP support, or merge the PSP experiment.