Look for IBC data outside Windows (#24062)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Fri, 19 Apr 2019 13:59:52 +0000 (15:59 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Apr 2019 13:59:52 +0000 (15:59 +0200)
#23363 added a crossplat implementation of `GetWin32Resource`, but forgot to enable places that call it.

src/zap/zapheaders.cpp
src/zap/zapimage.cpp

index 8ca00d7..c931d3b 100644 (file)
@@ -223,7 +223,6 @@ void ZapVersionResource::Save(ZapWriter * pZapWriter)
 
 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);
@@ -239,7 +238,6 @@ void ZapImage::CopyWin32VersionResource()
     m_pWin32ResourceSection->Place(pVersionData);
 
     SetDirectoryEntry(IMAGE_DIRECTORY_ENTRY_RESOURCE, m_pWin32ResourceSection);
-#endif
 }
 #undef MAKEINTRESOURCE
 
index da7ea50..aa661f5 100644 (file)
@@ -2448,7 +2448,6 @@ HRESULT ZapImage::LocateProfileData()
         return S_FALSE;
     }
 
-#if !defined(FEATURE_PAL)
     //
     // See if there's profile data in the resource section of the PE
     //
@@ -2463,7 +2462,6 @@ HRESULT ZapImage::LocateProfileData()
     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