@@ -2656,41 +2656,6 @@ void ZapInfo::getModuleNativeEntryPointRange(void** pStart, void** pEnd)
26562656 // Initialize outparams to default range of (0,0).
26572657 *pStart = 0 ;
26582658 *pEnd = 0 ;
2659-
2660- // If this is ILONLY, there are no native entry points.
2661- if (m_pImage->m_ModuleDecoder .IsILOnly ())
2662- {
2663- return ;
2664- }
2665-
2666- rvaStart = rvaEnd = 0 ;
2667-
2668- // Walk the section table looking for a section named .nep.
2669-
2670- IMAGE_SECTION_HEADER *section = m_pImage->m_ModuleDecoder .FindFirstSection ();
2671- IMAGE_SECTION_HEADER *sectionEnd = section + m_pImage->m_ModuleDecoder .GetNumberOfSections ();
2672- while (section < sectionEnd)
2673- {
2674- if (strncmp ((const char *)(section->Name ), " .nep" , IMAGE_SIZEOF_SHORT_NAME) == 0 )
2675- {
2676- rvaStart = VAL32 (section->VirtualAddress );
2677- rvaEnd = rvaStart + VAL32 (section->Misc .VirtualSize );
2678- if (rvaStart < rvaEnd)
2679- {
2680- // RVA will be fixed up to the actual address at runtime
2681- CORCOMPILE_EE_INFO_TABLE * pEEInfoTable = (CORCOMPILE_EE_INFO_TABLE *)m_pImage->m_pEEInfoTable ->GetData ();
2682- pEEInfoTable->nativeEntryPointStart = (BYTE*)((ULONG_PTR)rvaStart);
2683- pEEInfoTable->nativeEntryPointEnd = (BYTE*)((ULONG_PTR)rvaEnd);
2684-
2685- *pStart = m_pImage->GetInnerPtr (m_pImage->m_pEEInfoTable ,
2686- offsetof (CORCOMPILE_EE_INFO_TABLE, nativeEntryPointStart));
2687- *pEnd = m_pImage->GetInnerPtr (m_pImage->m_pEEInfoTable ,
2688- offsetof (CORCOMPILE_EE_INFO_TABLE, nativeEntryPointEnd));
2689- }
2690- break ;
2691- }
2692- section++;
2693- }
26942659}
26952660
26962661DWORD ZapInfo::getExpectedTargetArchitecture ()
@@ -3195,10 +3160,6 @@ void * ZapInfo::getArrayInitializationData(CORINFO_FIELD_HANDLE field, DWORD siz
31953160 if (m_pEEJitInfo->getClassModule (m_pEEJitInfo->getFieldClass (field)) != m_pImage->m_hModule )
31963161 return NULL ;
31973162
3198- // FieldDesc::SaveContents() does not save the RVA blob for IJW modules.
3199- if (!m_pImage->m_ModuleDecoder .IsILOnly ())
3200- return NULL ;
3201-
32023163 void * arrayData = m_pEEJitInfo->getArrayInitializationData (field, size);
32033164 if (!arrayData)
32043165 return NULL ;
0 commit comments