Fix build on some platforms
authorSimon Marlow <marlowsd@gmail.com>
Sun, 12 Oct 2014 16:39:23 +0000 (17:39 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Sun, 12 Oct 2014 16:39:23 +0000 (17:39 +0100)
rts/Linker.c

index 4ea7fd6..a34aeb7 100644 (file)
@@ -2369,7 +2369,9 @@ mkOc( pathchar *path, char *image, int imageSize,
    oc->sections          = NULL;
    oc->proddables        = NULL;
    oc->stable_ptrs       = NULL;
+#if powerpc_HOST_ARCH || x86_64_HOST_ARCH || arm_HOST_ARCH
    oc->symbol_extras     = NULL;
+#endif
 
 #ifndef USE_MMAP
 #ifdef darwin_HOST_OS