Replace the partial mechanics transcriptions with a separate, readable C11 reconstruction of the complete Win16 image while preserving the original raw Ghidra export as immutable evidence. Cover all ordinary and overlapping entry points, Borland runtime behavior, Win16 imports, segmented data, callbacks, resources, indirect control flow, physics, rendering, persistence, and startup/shutdown lifecycles. Add deterministic extraction and audit tooling plus address-linked ledgers for functions, imports, DGROUP ranges and objects, relocations, resources, and callbacks. The final gate records zero raw, partial, restored, unknown, blocked, or unclassified required units. Keep the semantic-fidelity boundary explicit: the portable C is not claimed to reproduce a byte-identical Borland NE build. Add strict focused harnesses for every reconstructed C unit, exact resource round-trip checks, and a 16-bit Borland Real48 reference probe. No Rust source or Cargo metadata is changed in this phase. Test Plan: - `bash original/tools/test_reconstructed_c.sh` -- passed - `bash original/tools/probe_real48_reference.sh` -- passed bit-for-bit - `python3 original/tools/audit_reconstruction.py --require-complete` -- passed - `git diff --cached --check` -- passed - `git diff HEAD -- '*.rs' Cargo.toml Cargo.lock` -- empty
8 lines
327 B
Plaintext
8 lines
327 B
Plaintext
segment selector file_offset file_length allocation_size zero_fill_bytes flags has_relocations
|
|
1 1000 3328 65082 65082 0 0x1d10 True
|
|
2 1008 81920 12485 12485 0 0x1d10 True
|
|
3 1010 97280 1516 1516 0 0x1d50 True
|
|
4 1018 99328 8058 8058 0 0x1d10 True
|
|
5 1020 108800 5923 5923 0 0x0d50 True
|
|
6 1028 115200 1864 19770 17906 0x0d41 True
|