Abhay Tiwari
8d226251a7
feat(ghidra): admit RISC-V position-independent executables ( #4487 ) ( #4811 )
...
* feat(ghidra): admit RISC-V position-independent executables (#4487 )
Admit little-endian RISC-V ELF32 and ELF64 position-independent executables
(ET_DYN with PT_INTERP) into the pinned generic Ghidra lane.
- Collect `PT_INTERP` during the existing validated ELF table walk in
`validateElfDeclaredRanges` and record `hasInterpreter` in target metadata,
supporting arbitrary table offsets and extended program counts without duplicate scanning.
- Admit ET_DYN images when `hasInterpreter` is present under lane identities
`elf32-pie-le-double-float-generic-v1` and `elf64-pie-le-double-float-generic-v1`.
- Preserve refusal for non-PIE ET_DYN targets (shared libraries without PT_INTERP)
explaining that shared libraries require separate load verification.
- Record load model facts (`load_model: "pie"`, `expected_default_image_base: "0x10000"`
or `"0x100000"`, `has_interpreter: true`) in `riscv_elf` analysis profile parameters.
- Record default image base analysis coordinates limitation for PIE targets.
- Update `docs/ghidra-riscv.md` with PIE admission boundary and evidence semantics.
- Add unit tests for PT_INTERP collection, high-offset program headers, and PIE profile resolution.
- Add PIE fixture generation capability to `tests/conformance/ghidra/riscv-fixture.mjs` and
pass `-Wl,-pie` to ensure bare-metal drivers generate ET_DYN.
- Extend `scripts/verify-real-ghidra-riscv.mjs` to test both ET_EXEC and ET_DYN.
Fixes #4487
* fix(ghidra): check structured facts and rethrow typed errors in PIE tests
* style: format GhidraRiscvProfile.test.ts
* fix(ghidra): restrict PIE admission to verified double-float RISC-V lanes
2026-11-18 19:44:40 -05:00
..
2026-11-18 15:27:23 -05:00
2026-11-16 14:58:17 -05:00
2026-11-18 19:31:12 -05:00
2026-11-16 10:59:18 +08:00
2026-11-18 19:07:02 -05:00
2026-10-21 21:19:45 -07:00
2026-10-23 02:31:11 +08:00
2026-11-11 17:28:10 +08:00
2026-11-18 16:06:51 -05:00
2026-10-26 16:04:44 +08:00
2026-10-12 09:25:27 +08:00
2026-11-14 20:25:11 +08:00
2026-11-14 04:08:37 -05:00
2026-11-17 14:57:30 -05:00
2026-10-09 20:11:17 +08:00
2026-10-15 20:11:26 +08:00
2026-11-11 17:20:22 +08:00
2026-11-15 20:35:48 +08:00
2026-10-26 14:46:35 +08:00
2026-11-11 00:16:44 -05:00
2026-11-16 10:59:18 +08:00
2026-10-13 18:23:17 +08:00
2026-10-26 15:49:58 +08:00
2026-10-08 22:43:51 +08:00
2026-11-16 05:31:37 +08:00
2026-10-13 12:06:41 +08:00
2026-10-30 18:29:18 +08:00
2026-11-09 20:48:08 +08:00
2026-10-27 17:13:17 +00:00
2026-11-14 11:48:19 +08:00
2026-10-14 04:47:34 +08:00
2026-11-03 09:33:41 +08:00
2026-10-24 09:24:43 +00:00
2026-07-17 00:16:46 +00:00
2026-10-13 22:03:16 +08:00
2026-11-16 13:56:34 +00:00
2026-11-17 19:58:40 +08:00
2026-11-16 18:57:12 +08:00
2026-11-18 07:00:09 +08:00
2026-10-11 11:49:49 +08:00
2026-10-24 11:41:34 +08:00
2026-11-12 05:08:27 -05:00
2026-11-12 20:29:42 -08:00
2026-10-14 13:58:17 +08:00
2026-11-01 00:15:28 +08:00
2026-10-24 15:57:23 +00:00
2026-10-31 16:43:04 +08:00
2026-10-21 19:47:52 +08:00
2026-10-21 19:47:52 +08:00
2026-11-17 08:28:59 -05:00
2026-11-18 17:54:40 -05:00
2026-11-18 07:12:22 +08:00
2026-11-18 07:12:22 +08:00
2026-11-16 00:06:34 +08:00
2026-11-15 20:55:29 -05:00
2026-11-15 20:32:38 +08:00
2026-11-15 22:01:49 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:01:18 +08:00
2026-11-16 03:56:10 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:55:09 +08:00
2026-10-24 21:51:41 +08:00
2026-10-07 21:45:07 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:47:57 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 05:31:37 +08:00
2026-11-15 20:19:27 +08:00
2026-11-15 20:19:27 +08:00
2026-11-18 15:08:58 -05:00
2026-11-16 05:31:37 +08:00
2026-11-17 10:47:29 +00:00
2026-11-15 20:19:27 +08:00
2026-11-15 21:07:13 +08:00
2026-11-17 14:57:30 -05:00
2026-11-17 10:04:46 +00:00
2026-11-17 10:04:46 +00:00
2026-11-16 00:06:34 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 00:39:50 +08:00
2026-11-15 21:51:18 +08:00
2026-11-18 16:06:51 -05:00
2026-11-16 00:04:05 +08:00
2026-11-16 06:28:01 +08:00
2026-11-17 08:19:52 +00:00
2026-11-16 06:28:01 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:38:57 +08:00
2026-11-15 22:01:49 +08:00
2026-08-05 19:07:46 +08:00
2026-11-16 03:56:10 +08:00
2026-11-15 20:19:27 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 04:27:07 +08:00
2026-11-16 00:06:34 +08:00
2026-11-15 20:19:27 +08:00
2026-11-15 20:19:27 +08:00
2026-10-24 22:28:39 +08:00
2026-10-24 22:28:39 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-11-14 04:08:37 -05:00
2026-11-14 04:08:37 -05:00
2026-11-16 08:04:12 +08:00
2026-11-17 08:28:59 -05:00
2026-10-24 22:28:39 +08:00
2026-11-15 21:51:18 +08:00
2026-11-18 15:33:46 -05:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-10-12 18:44:02 +08:00
2026-10-20 00:05:22 +08:00
2026-10-20 00:05:22 +08:00
2026-10-24 17:54:18 +08:00
2026-11-13 10:11:06 -05:00
2026-10-24 22:28:39 +08:00
2026-11-01 18:36:21 +08:00
2026-11-17 16:34:22 -05:00
2026-11-15 22:01:49 +08:00
2026-11-15 21:50:00 +08:00
2026-11-16 00:04:05 +08:00
2026-10-24 16:58:18 +08:00
2026-10-27 17:13:17 +00:00
2026-11-16 00:04:05 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 00:06:34 +08:00
2026-11-15 22:01:49 +08:00
2026-11-15 21:51:18 +08:00
2026-11-15 20:19:27 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 00:06:34 +08:00
2026-11-02 02:13:32 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 04:08:37 -05:00
2026-11-16 00:19:07 +08:00
2026-11-18 16:40:18 -05:00
2026-11-15 19:52:38 +08:00
2026-11-15 19:52:38 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-04 19:51:27 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 05:37:57 +08:00
2026-11-16 07:04:34 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 05:37:57 +08:00
2026-11-16 07:04:34 +08:00
2026-11-16 05:37:57 +08:00
2026-11-16 06:28:01 +08:00
2026-11-18 19:44:40 -05:00
2026-11-18 16:06:51 -05:00
2026-10-05 22:54:17 +08:00
2026-10-06 01:59:19 +08:00
2026-11-16 06:28:01 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-15 21:37:40 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 08:08:38 +08:00
2026-11-18 16:06:51 -05:00
2026-10-27 01:11:51 +08:00
2026-11-15 21:51:18 +08:00
2026-11-15 22:01:49 +08:00
2026-10-08 10:13:05 +00:00
2026-11-15 22:01:49 +08:00
2026-11-17 08:28:59 -05:00
2026-11-15 21:51:18 +08:00
2026-10-13 21:55:30 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 03:57:03 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:38:13 -05:00
2026-10-23 16:06:27 +08:00
2026-10-26 16:04:44 +08:00
2026-11-15 21:50:00 +08:00
2026-11-16 03:56:10 +08:00
2026-11-17 08:28:59 -05:00
2026-11-03 09:33:41 +08:00
2026-10-23 16:06:27 +08:00
2026-11-03 09:33:41 +08:00
2026-10-26 14:46:23 +08:00