[aot] Fixed LLVM assembly generation for non-Mach targets.
authorJoão Matos <joao@tritao.eu>
Thu, 12 Feb 2015 13:39:31 +0000 (13:39 +0000)
committerJoão Matos <joao@tritao.eu>
Thu, 12 Feb 2015 13:42:46 +0000 (13:42 +0000)
Fixes bugzilla #26964.

mono/mini/aot-compiler.c

index 9ddb629d3c39a8f016e217238ea35eb1487be1e2..0c1ef800a339b231d5608646ebf94e8424660e8d 100644 (file)
@@ -5858,7 +5858,9 @@ emit_plt (MonoAotCompile *acfg)
                        emit_label (acfg, plt_entry->llvm_symbol);
                        if (acfg->llvm_separate) {
                                emit_global (acfg, plt_entry->llvm_symbol, TRUE);
+#if defined(TARGET_MACH)
                                fprintf (acfg->fp, ".private_extern %s\n", plt_entry->llvm_symbol);
+#endif
                        }
                }