windows: stub unresolved imports (log once + return 0) instead of fatal #29
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/29"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-09-27T11:31:31Z.
Unresolved ELF imports bind to a per-NID trampoline (log once at bind, log once at first call, return 0) instead of FAIL 0xC0000139. windows-diagnostics-imports.txt unchanged. lazy-binding aligned to ret-0. New windows_stub_policy_tests (synthetic PE, exit 42, 1x/1x logging). R_X86_64_64 addend handled.
Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-27T13:08:12Z.
Recently, a branch with a similar feature was merged from main, which, on Windows, writes the path to a library that was not found.
Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-09-27T13:48:58Z.
Rebased on top of main (sce-module-load + missing-module path). Instead of picking a side, the stub policy now feeds both modes: eager binds GOT slots to the ret-0 trampolines directly as before, lazy binds the same trampolines through the LazyStubs file-patch mechanism (replacing the fail stubs). Guest startup/TLS-resolver flow is untouched.
Two latent bugs fixed along the way:
windows_stub_policy_tests (eager/clean/lazy/addend boots, all exit 0 with exact STUB lines) and windows_dependency_diagnostics_tests are green.
Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-27T15:10:43Z.
Essentially, this changes the policy from “import not found -> application doesn’t start immediately and writes what’s wrong” to “import not found -> we substitute a stub and try to continue execution.”
The entire project was built on a strict approach, to move forward slowly but surely, rather than pretending everything was fine and then running into a segfault later.
Pull request closed