upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorMike7581 <168859477+Mike7581@users.noreply.github.com>2026-11-25 15:05:13 -0300
committerMike7581 <168859477+Mike7581@users.noreply.github.com>2026-11-25 15:15:43 -0300
commit2cca47b5c8971c885961c35741ab8b0f0debaa01 (patch)
tree0184aca6153b5a15775ec358ed905e3910e20acb /runtime/test/cpp_unwind_test.cpp
parent582e14d922ad9b24a63ba55f7b8e57bd4aef3c08 (diff)
loader: compat run-time loads honour LoadLibraryEx flags and Windows-loaded dependencies
Review follow-up for #1565: - LoadLibraryEx with DONT_RESOLVE_DLL_REFERENCES on a LEONIDA_COMPAT_DIR module fails with ERROR_NOT_SUPPORTED, before loading or returning a loaded handle, as for bundled DLLs. - A compat DLL that Windows loaded as another compat DLL's dependency is recognised: compat_handle() finds it by its full path, and owns_compat_handle() by its folder (read outside mutex_, since GetModuleFileNameW can take the loader lock), so GetModuleHandle and LoadLibrary return it and GetProcAddress never fills in a missing export from the shim. - A name with a directory gets the compat DLL only when it is that file; any other path goes on as without the folder. - Names outside ASCII reach the compat lookup (it runs before the ASCII / wide split). - The folder's file names are listed once per Loader, so lookups no longer touch the disk. loader_test: test_compat_runtime_edges adds six cases for the first four points, through LoadLibraryExA/W, LoadLibraryW, GetModuleHandleW and GetProcAddress; all six fail on 582e14d. The listing has no functional test.
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions