diff options
Diffstat (limited to 'src/zap/zaprelocs.cpp')
-rw-r--r-- | src/zap/zaprelocs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zap/zaprelocs.cpp b/src/zap/zaprelocs.cpp index 059d9a59ac..3718f2c99e 100644 --- a/src/zap/zaprelocs.cpp +++ b/src/zap/zaprelocs.cpp @@ -46,7 +46,7 @@ void ZapBaseRelocs::WriteReloc(PVOID pSrc, int offset, ZapNode * pTarget, int ta case IMAGE_REL_BASED_PTR: #ifdef _TARGET_ARM_ // Misaligned relocs disable ASLR on ARM. We should never ever emit them. - _ASSERTE(IS_ALIGNED(rva, sizeof(TADDR))); + _ASSERTE(IS_ALIGNED(rva, TARGET_POINTER_SIZE)); #endif *(UNALIGNED TADDR *)pLocation = pActualTarget; break; @@ -350,7 +350,7 @@ COUNT_T ZapBlobWithRelocs::GetCountOfStraddlerRelocations(DWORD dwPos) { if (pReloc->m_type == IMAGE_REL_BASED_PTR) { - if (AlignmentTrim(dwPos + pReloc->m_offset, RELOCATION_PAGE_SIZE) > RELOCATION_PAGE_SIZE - sizeof(TADDR)) + if (AlignmentTrim(dwPos + pReloc->m_offset, RELOCATION_PAGE_SIZE) > RELOCATION_PAGE_SIZE - TARGET_POINTER_SIZE) nStraddlers++; } } |