]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/valgrind/src/valgrind-3.6.0-svn/coregrind/link_tool_exe_darwin.in
update
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / coregrind / link_tool_exe_darwin.in
index be1a1d9d3cbefa60295b8f6a6d576ee4d580354c..e111738b4e00a1dbd1e1b59b231d4ca604bf84ff 100644 (file)
@@ -160,14 +160,31 @@ foreach my $n (2 .. $#ARGV) {
     }
 }
 
-#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;