[aot] Fixed the strip invocation to correctly handle paths with spaces.
authorJoão Matos <joao@tritao.eu>
Fri, 22 May 2015 13:58:57 +0000 (14:58 +0100)
committerJoão Matos <joao@tritao.eu>
Fri, 22 May 2015 14:04:59 +0000 (15:04 +0100)
mono/mini/aot-compiler.c

index 400bf58a5966cab347a5cdc65ef9ed715f856fc9..9ea066034c0f5dec4acc35d1185fd66acd76a28b 100644 (file)
@@ -8973,7 +8973,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", tool_prefix, tmp_outfile_name);
        aot_printf (acfg, "Stripping the binary: %s\n", command);
        if (execute_system (command) != 0) {
                g_free (tmp_outfile_name);