summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-01-23 18:50:48 -0800
committerJan Kotas <jkotas@microsoft.com>2016-01-23 18:50:48 -0800
commited743cfc2a8e01e83abed4efb9f7583144f5834f (patch)
tree1360387dc97f29a8527b6ac226a45a25720bd925
parentae8cc797ae82f6b8631ebd334e286826616ce8d2 (diff)
parentbff3a0cd8fe38e4e68f3ef6465843f81e46fb5ff (diff)
downloadcoreclr-ed743cfc2a8e01e83abed4efb9f7583144f5834f.tar.gz
coreclr-ed743cfc2a8e01e83abed4efb9f7583144f5834f.tar.bz2
coreclr-ed743cfc2a8e01e83abed4efb9f7583144f5834f.zip
Merge pull request #2829 from krytarowski/netbsd-support-11
Add new IMAGE_FILE_MACHINE_NATIVE_OS_OVERRIDE type for NetBSD
-rw-r--r--src/inc/pedecoder.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/inc/pedecoder.h b/src/inc/pedecoder.h
index c698b87a9b..51a56736ef 100644
--- a/src/inc/pedecoder.h
+++ b/src/inc/pedecoder.h
@@ -93,12 +93,14 @@ inline CHECK CheckOverflow(RVA value1, COUNT_T value2)
#endif
// Machine code for native images
-#if defined(__LINUX__)
-#define IMAGE_FILE_MACHINE_NATIVE_OS_OVERRIDE 0x7B79
-#elif defined(__APPLE__)
+#if defined(__APPLE__)
#define IMAGE_FILE_MACHINE_NATIVE_OS_OVERRIDE 0x4644
#elif defined(__FreeBSD__)
#define IMAGE_FILE_MACHINE_NATIVE_OS_OVERRIDE 0xADC4
+#elif defined(__LINUX__)
+#define IMAGE_FILE_MACHINE_NATIVE_OS_OVERRIDE 0x7B79
+#elif defined(__NetBSD__)
+#define IMAGE_FILE_MACHINE_NATIVE_OS_OVERRIDE 0x1993
#else
#define IMAGE_FILE_MACHINE_NATIVE_OS_OVERRIDE 0
#endif