Allow non-RIP-relative relocations in coreclr crossgen.
authorEugene Rozenfeld <erozen@microsoft.com>
Thu, 2 Jul 2015 19:45:04 +0000 (12:45 -0700)
committerEugene Rozenfeld <erozen@microsoft.com>
Thu, 2 Jul 2015 20:20:00 +0000 (13:20 -0700)
src/zap/zapinfo.cpp

index 151ac02..0e48eda 100644 (file)
@@ -3312,7 +3312,7 @@ void ZapInfo::recordRelocation(void *location, void *target,
         break;
 
     case IMAGE_REL_BASED_PTR:
-#ifdef _TARGET_AMD64_
+#if defined(_TARGET_AMD64_) && !defined(FEATURE_CORECLR)
         _ASSERTE(!"Why we are not using RIP relative address?");
 #endif
         *(UNALIGNED TADDR *)location = (TADDR)targetOffset;