fix(relinker): leave GS-prefixed LEA and NOP unchanged

LEA computes an effective address and the multi-byte NOP ignores its operand, so neither accesses memory and a GS prefix on them is ignored. The Windows TLS builder and macOS image writer treated every ModRM memory form as an access and replaced these instructions with UD2 and NOP padding.
This commit is contained in:
aasishdairel committed 2026-10-22 21:01:29 +05:30
1 parent b7d1d47a5f
commit 8b86ca3984
6 files changed
+16 -2

No files matched your search

@@ -120,6 +120,8 @@ int main() {
for (const auto& testCase : std::vector<std::pair<const char*, bool>>{
{"6590", false},
{"654889c8", false},
{"658d0511111111", false},
{"650f1f0511111111", false},
{"65488b0c2578030000", true},
{"65a4", true},
{"650fa2", false},