[aot] Fixes strip tool invocation in to wrap paths in AOT compilation.
authorJoão Matos <joao@tritao.eu>
Tue, 12 Jul 2016 15:59:26 +0000 (16:59 +0100)
committerJoão Matos <joao@tritao.eu>
Tue, 12 Jul 2016 16:15:17 +0000 (17:15 +0100)
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=34498.

mono/mini/aot-compiler.c

index 637e4b61318679686806b910a560a0b666be5538..516cae11c726544697cc06ecfccfc9f07862ef18 100644 (file)
@@ -9967,7 +9967,7 @@ compile_asm (MonoAotCompile *acfg)
         * gas generates 'mapping symbols' each time code and data is mixed, which 
         * happens a lot in emit_and_reloc_code (), so we need to get rid of them.
         */
-       command = g_strdup_printf ("\"%sstrip\" --strip-symbol=\\$a --strip-symbol=\\$d %s", tool_prefix, tmp_outfile_name);
+       command = g_strdup_printf ("\"%sstrip\" --strip-symbol=\\$a --strip-symbol=\\$d %s", wrap_path(tool_prefix), wrap_path(tmp_outfile_name));
        aot_printf (acfg, "Stripping the binary: %s\n", command);
        if (execute_system (command) != 0) {
                g_free (tmp_outfile_name);