[PR #4532] fix(ghidra): admit recordless legacy MIPS32 carves missing section tables #6291

Open
opened 2026-10-31 01:13:20 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/4532
Author: @bqw371
Created: 10/16/2026
Status: 🔄 Open

Base: main ← Head: fix/mips-carved-recordless-admission


📝 Commits (3)

  • 6d3ae2b fix(ghidra): admit recordless legacy MIPS32 carves missing section tables
  • 0a843bc docs(ghidra): describe the recordless carve admission in the MIPS guide
  • 29927c0 Merge branch 'main' into fix/mips-carved-recordless-admission

📊 Changes

4 files changed (+170 additions, -46 deletions)

View changed files

📝 docs/ghidra-mips.md (+12 -6)
📝 src/application/MipsElfMetadata.ts (+86 -38)
📝 src/ghidra/GhidraMipsProfile.test.ts (+55 -0)
📝 src/ghidra/GhidraMipsProfile.ts (+17 -2)

📄 Description

Closes #3155.

Implementation by @akushonkamen (akushonkamen:fix/mips-carved-recordless-admission, commit 81b847e75); opened from my fork because PR creation failed from that account (see the author's comment on #3155). Rebased onto current main (9d940c2f2): the only conflict was the import block against 938728227, and every added or removed line is his. Admits a recordless legacy EF_MIPS_ARCH_32 ELF whose only inspection limitation is a section header table past EOF, with the 32-bit language pinned, o32 recorded as an assumption, and the unread headers kept in abi_flags_limitations and Evidence. Program-header and mixed limitations still refuse. Scope unchanged from the issue: complete recordless files (#1898) and record-carrying carves (#1629, d4bd65c53) are untouched.

Validation: unit/boundary red→green and the repo gates are in the author's delivery comment on #3155. On the rebased tree: npm ci, build and tsc --noEmit clean; oxlint exit 0 on the changed files (its two warnings on MipsElfMetadata.ts are on main too); the MIPS profile, ABI-flags, shared-load and GNU-attributes suites 161 passed; red check (fix reverted, test kept) 2 failed / 65 passed. Real provider, mine, on Ghidra 12.1.3 and 12.1.4, both byte orders, through the CLI and the MCP server: synthetic uncut files open with 3 procedures, carves with 2, pinned to MIPS:<LE|BE>:32:default, limitation kept in the profile and the Evidence envelope, entry function decompiles without bad data and jr ra decodes; real carved firmware of this shape opens with exact entry-set matches to plain analyzeHeadless. verify:ghidra:mips was red on main at d4bd65c53 (see #3096), unrelated to this change. Full round: the comment on #3155.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/4532 **Author:** [@bqw371](https://github.com/bqw371) **Created:** 10/16/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/mips-carved-recordless-admission` --- ### 📝 Commits (3) - [`6d3ae2b`](https://github.com/morluto/rea/commit/6d3ae2bd5b8b4d0918d31c3b62d73613ac65ce47) fix(ghidra): admit recordless legacy MIPS32 carves missing section tables - [`0a843bc`](https://github.com/morluto/rea/commit/0a843bc3c89e7b8f541ec03fd8153804fadde5ed) docs(ghidra): describe the recordless carve admission in the MIPS guide - [`29927c0`](https://github.com/morluto/rea/commit/29927c087ef3ec169d5fda6e665d1175afd17749) Merge branch 'main' into fix/mips-carved-recordless-admission ### 📊 Changes **4 files changed** (+170 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `docs/ghidra-mips.md` (+12 -6) 📝 `src/application/MipsElfMetadata.ts` (+86 -38) 📝 `src/ghidra/GhidraMipsProfile.test.ts` (+55 -0) 📝 `src/ghidra/GhidraMipsProfile.ts` (+17 -2) </details> ### 📄 Description Closes #3155. Implementation by @akushonkamen (`akushonkamen:fix/mips-carved-recordless-admission`, commit `81b847e75`); opened from my fork because PR creation failed from that account (see the author's comment on #3155). Rebased onto current `main` (`9d940c2f2`): the only conflict was the import block against `938728227`, and every added or removed line is his. Admits a recordless legacy `EF_MIPS_ARCH_32` ELF whose only inspection limitation is a section header table past EOF, with the 32-bit language pinned, o32 recorded as an assumption, and the unread headers kept in `abi_flags_limitations` and Evidence. Program-header and mixed limitations still refuse. Scope unchanged from the issue: complete recordless files (#1898) and record-carrying carves (#1629, `d4bd65c53`) are untouched. Validation: unit/boundary red→green and the repo gates are in the author's delivery comment on #3155. On the rebased tree: `npm ci`, build and `tsc --noEmit` clean; oxlint exit 0 on the changed files (its two warnings on `MipsElfMetadata.ts` are on `main` too); the MIPS profile, ABI-flags, shared-load and GNU-attributes suites 161 passed; red check (fix reverted, test kept) 2 failed / 65 passed. Real provider, mine, on Ghidra 12.1.3 and 12.1.4, both byte orders, through the CLI and the MCP server: synthetic uncut files open with 3 procedures, carves with 2, pinned to `MIPS:<LE|BE>:32:default`, limitation kept in the profile and the Evidence envelope, entry function decompiles without bad data and `jr ra` decodes; real carved firmware of this shape opens with exact entry-set matches to plain `analyzeHeadless`. `verify:ghidra:mips` was red on `main` at `d4bd65c53` (see #3096), unrelated to this change. Full round: the comment on #3155. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#6291
No description provided.