Fix loading of native images on Unix
authorJan Kotas <jkotas@microsoft.com>
Sun, 7 Feb 2016 03:40:58 +0000 (19:40 -0800)
committerJan Kotas <jkotas@microsoft.com>
Sun, 7 Feb 2016 03:40:58 +0000 (19:40 -0800)
commit262f52be16bcd14d7ba353982433e2462f283e8c
tree71f029d80bd2f08525978f279bdba5d96718983e
parentc2dbd82d9047a60f2997be103a8465c01c957523
Fix loading of native images on Unix

R2R images that were compiled from architecture-specific IL images failed to load with bad image format exception on Unix. The fix is to take IMAGE_FILE_MACHINE_NATIVE_OS_OVERRIDE into account for the platform check.

Commit migrated from https://github.com/dotnet/coreclr/commit/fbeed7cd9580ed1f8c2a6c04591361c89e36cb27
src/coreclr/src/inc/pedecoder.inl