From bb256ebbf32d7493e3d867923ec737e60d3f9f9d Mon Sep 17 00:00:00 2001 From: Jan Trencansky Date: Tue, 24 Nov 2026 05:00:08 -0500 Subject: pe_loader: the relocation-move notes stop citing the old pull request number The Windows 11 measurement behind this behaviour was posted in a review of pull request 8847 of the original repository, which went private on 2026-11-23, so its link and the "#8847" references in pe_loader.cpp and loader_test.cpp lead nowhere now. runtime/README.md keeps the measurement and the open question in its own words and names where it came from; the code comments point at the README. No behaviour changes. Co-Authored-By: Claude Opus 5.5 --- runtime/test/loader_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'runtime/test/loader_test.cpp') diff --git a/runtime/test/loader_test.cpp b/runtime/test/loader_test.cpp index 926becd12..6930878a9 100644 --- a/runtime/test/loader_test.cpp +++ b/runtime/test/loader_test.cpp @@ -655,10 +655,10 @@ void test_initialise_rejects() { } // IMAGE_FILE_RELOCS_STRIPPED against a relocation directory, when the preferred base is taken. Measured on the -// Windows 11 (26200) loader with synthetic DLLs (#8847): with no relocation directory the flag refuses the move and -// an image with the flag clear is moved with nothing fixed up; with a relocation table the image is moved and fixed -// up whatever the flag says. The DllMain stub stores through an absolute address in this process, not in the image, -// so it runs correctly wherever the image lands. +// Windows 11 (26200) loader with synthetic DLLs (runtime/README.md): with no relocation directory the flag refuses +// the move and an image with the flag clear is moved with nothing fixed up; with a relocation table the image is +// moved and fixed up whatever the flag says. The DllMain stub stores through an absolute address in this process, +// not in the image, so it runs correctly wherever the image lands. void test_moved_without_relocations() { auto img = make_image(); auto* nt = nt_of(img); @@ -706,7 +706,7 @@ void test_moved_without_relocations() { if (held) VirtualFree(held, 0, MEM_RELEASE); { // At a free base such an image maps, as it did before. Not Windows parity: the Windows 11 loader refused these - // DLLs (error 487) at a free base too, for a reason not yet known (#8847); runtime/README.md keeps the question. + // DLLs (error 487) at a free base too, for a reason not yet known; runtime/README.md keeps the question. auto stripped = img; nt_of(stripped)->FileHeader.Characteristics |= IMAGE_FILE_RELOCS_STRIPPED; expect_loads("an image with IMAGE_FILE_RELOCS_STRIPPED and no relocations maps at its free base", stripped); -- cgit v1.2.3