mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
style(relinker): drop inline rationale comment per CONVENTIONS.md
The project's coding conventions restrict inline comments to technical-debt markers, #endif, and namespace-close trailers. Remove the explanatory comment on writeGotStub's DIR64 write; the same rationale (why the slot must hold the preferred-VA form, and why the base-relocation pass was moved after lazy-stub writes) is already captured in the fix(relinker) commit message and PR description. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,8 +32,6 @@ void writeGotStub(std::vector<PeSection>& sections, const std::uint32_t targetRv
|
||||
for (auto& section : sections) {
|
||||
if (section.Data.size() < 8 || targetRva < section.Rva || targetRva - section.Rva > section.Data.size() - 8)
|
||||
continue;
|
||||
// A DIR64 base relocation only adds the load delta to the stored value, so the slot must hold the
|
||||
// preferred-VA form (ImageBase + rva); a bare RVA would end up as (loadBase - ImageBase + rva) at runtime.
|
||||
Io::WriteU64(section.Data, targetRva - section.Rva, ImageBase + stubRva);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user