}
}
-#print "link_tool_exe_darwin: $cmd\n";
-
+print "link_tool_exe_darwin: $cmd\n";
# Execute the command:
my $r = system("$cmd");
-if ($r == 0) {
- exit 0;
-} else {
- exit 1;
+if ($r != 0) {
+ exit 1;
+}
+
+
+# and now kludge the tool exe
+# see bug 267997
+
+$cmd = "../coregrind/fixup_macho_loadcmds";
+$cmd = "$cmd $stack_addr_str $stack_size_str $outname";
+
+print "link_tool_exe_darwin: $cmd\n";
+
+$r = system("$cmd");
+
+if ($r != 0) {
+ exit 1;
}
+
+
+
+
+exit 0;