#23363 added a crossplat implementation of `GetWin32Resource`, but forgot to enable places that call it.
void ZapImage::CopyWin32VersionResource()
{
-#ifndef FEATURE_PAL
// Copy the version resource over so it is easy to see in the dumps where the ngened module came from
COUNT_T cbResourceData;
PVOID pResourceData = m_ModuleDecoder.GetWin32Resource(MAKEINTRESOURCE(1), RT_VERSION, &cbResourceData);
m_pWin32ResourceSection->Place(pVersionData);
SetDirectoryEntry(IMAGE_DIRECTORY_ENTRY_RESOURCE, m_pWin32ResourceSection);
-#endif
}
#undef MAKEINTRESOURCE
return S_FALSE;
}
-#if !defined(FEATURE_PAL)
//
// See if there's profile data in the resource section of the PE
//
static ConfigDWORD g_UseIBCFile;
if (g_UseIBCFile.val(CLRConfig::EXTERNAL_UseIBCFile) != 1)
return S_OK;
-#endif
//
// Couldn't find profile resource--let's see if there's an ibc file to use instead