diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 05:00:08 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 05:00:08 -0500 |
| commit | bb256ebbf32d7493e3d867923ec737e60d3f9f9d (patch) | |
| tree | 8a20210e80cb4b0f0736bcd750c2c9753b48b219 /runtime/src/pe_loader.cpp | |
| parent | ca56a0d5eff2f6217a593babcfaff87d46daa15d (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
| -rw-r--r-- | runtime/src/pe_loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/pe_loader.cpp b/runtime/src/pe_loader.cpp index 1c6b91b54..de42996f5 100644 --- a/runtime/src/pe_loader.cpp +++ b/runtime/src/pe_loader.cpp | |||
| @@ -1452,7 +1452,7 @@ Module& Loader::map_image(const std::filesystem::path& path, const std::string& | |||
| 1452 | int64_t delta = reinterpret_cast<int64_t>(m->base) - static_cast<int64_t>(oh.ImageBase); | 1452 | int64_t delta = reinterpret_cast<int64_t>(m->base) - static_cast<int64_t>(oh.ImageBase); |
| 1453 | // A moved image with a relocation table is fixed up, whatever IMAGE_FILE_RELOCS_STRIPPED says. Without a table, | 1453 | // A moved image with a relocation table is fixed up, whatever IMAGE_FILE_RELOCS_STRIPPED says. Without a table, |
| 1454 | // the flag refuses the move; with the flag clear the image is moved and nothing is fixed up, so it is trusted to | 1454 | // the flag refuses the move; with the flag clear the image is moved and nothing is fixed up, so it is trusted to |
| 1455 | // hold no absolute addresses. The Windows 11 loader does all three (measured in #8847); that move is logged so | 1455 | // hold no absolute addresses. The Windows 11 loader does all three (runtime/README.md); that move is logged so |
| 1456 | // it shows in traces. base_reservation::needed still keeps the main image's range free when it has no | 1456 | // it shows in traces. base_reservation::needed still keeps the main image's range free when it has no |
| 1457 | // relocation directory, so a main image is moved this way only where the range could not be had. | 1457 | // relocation directory, so a main image is moved this way only where the range could not be had. |
| 1458 | const auto dir = directory(nt, IMAGE_DIRECTORY_ENTRY_BASERELOC); | 1458 | const auto dir = directory(nt, IMAGE_DIRECTORY_ENTRY_BASERELOC); |