]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove link_tool_exe.c and replace it with perl scripts that do the
authorJulian Seward <jseward@acm.org>
Sun, 13 Jun 2010 22:13:58 +0000 (22:13 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 13 Jun 2010 22:13:58 +0000 (22:13 +0000)
same thing.  A .c file doesn't work for cross compilation.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11174

16 files changed:
cachegrind/Makefile.am
callgrind/Makefile.am
configure.in
coregrind/Makefile.am
coregrind/link_tool_exe.c [deleted file]
coregrind/link_tool_exe_aix5.in [new file with mode: 0644]
coregrind/link_tool_exe_darwin.in [new file with mode: 0644]
coregrind/link_tool_exe_linux.in [new file with mode: 0644]
drd/Makefile.am
exp-bbv/Makefile.am
exp-ptrcheck/Makefile.am
helgrind/Makefile.am
lackey/Makefile.am
massif/Makefile.am
memcheck/Makefile.am
none/Makefile.am

index fcb5ec0958fd00cba14991e0b22f9ccd65a18974..81f37df5edcf9d7df9e39dec517d8ec6fa6702ad 100644 (file)
@@ -56,7 +56,7 @@ cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -76,7 +76,7 @@ cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
index 5efe66167e002bafe4e642872b684025eea70efb..bbc8434a5e1518312c7938e49b8c6e5ba8060ec0 100644 (file)
@@ -66,7 +66,7 @@ callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -86,7 +86,7 @@ callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
index f06c922fccaf839e2c432a1e42cf9725436dca65..70ceb3aa6d326043f5018d6eb633d3fa8037eea8 100644 (file)
@@ -251,11 +251,6 @@ case "${host_os}" in
         VGCONF_OS="aix5"
         ;;       
 
-     *freebsd*)
-        AC_MSG_RESULT([ok (${host_os})])
-        VGCONF_OS="freebsd"
-        ;;
-
      *darwin*)
         AC_MSG_RESULT([ok (${host_os})])
         VGCONF_OS="darwin"
@@ -1278,9 +1273,12 @@ AC_MSG_RESULT([no])
 CFLAGS=$safe_CFLAGS
 
 
-# does this compiler support -Wl,--build-id=none ?
+# does the linker support -Wl,--build-id=none ?  Note, it's
+# important that we test indirectly via whichever C compiler
+# is selected, rather than testing /usr/bin/ld or whatever
+# directly.
 
-AC_MSG_CHECKING([if gcc accepts -Wl,--build-id=none])
+AC_MSG_CHECKING([if the linker accepts -Wl,--build-id=none])
 
 safe_CFLAGS=$CFLAGS
 CFLAGS="-Wl,--build-id=none"
@@ -1864,6 +1862,12 @@ AC_CONFIG_FILES([
    exp-bbv/tests/ppc32-linux/Makefile
    exp-bbv/tests/arm-linux/Makefile
 ])
+AC_CONFIG_FILES([coregrind/link_tool_exe_linux],
+                [chmod +x coregrind/link_tool_exe_linux])
+AC_CONFIG_FILES([coregrind/link_tool_exe_darwin],
+                [chmod +x coregrind/link_tool_exe_darwin])
+AC_CONFIG_FILES([coregrind/link_tool_exe_aix5],
+                [chmod +x coregrind/link_tool_exe_aix5])
 AC_OUTPUT
 
 cat<<EOF
index 8a9ddac14249fecedd3a7d8a90b5402c827e7804..4af776cf5c39685ac2f6351d9f7f6982a52244f1 100644 (file)
@@ -421,27 +421,6 @@ vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \
        $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 endif
 
-#----------------------------------------------------------------------------
-# link_tool_exe, the wrapper for the system linker
-#----------------------------------------------------------------------------
-
-noinst_PROGRAMS += link_tool_exe
-
-link_tool_exe_SOURCES   = link_tool_exe.c
-link_tool_exe_CPPFLAGS  = $(AM_CPPFLAGS_PRI)
-link_tool_exe_CFLAGS    = $(AM_CFLAGS_PRI)
-link_tool_exe_CCASFLAGS = $(AM_CCASFLAGS_PRI)
-link_tool_exe_LDFLAGS   = $(AM_CFLAGS_PRI)
-
-# force link_tool_exe to be built before libcoregrind.a is, and hence
-# before any of the tool executables are linked, since they in turn
-# are dependent on libcoregrind.a.  Unfortunately this doesn't give a
-# dependence on link_tool_exe.c: ideally if link_tool_exe.c is
-# changed, then 'make' rebuilds link_tool_exe, but the tool
-# executables themselves are not relinked.  I can't figure out how
-# to get that to happen.
-BUILT_SOURCES += link_tool_exe
-
 #----------------------------------------------------------------------------
 # General stuff
 #----------------------------------------------------------------------------
diff --git a/coregrind/link_tool_exe.c b/coregrind/link_tool_exe.c
deleted file mode 100644 (file)
index 9511458..0000000
+++ /dev/null
@@ -1,171 +0,0 @@
-
-/* This program handles linking the tool executables, statically and
-   at an alternative load address.  Linking them statically sidesteps
-   all sorts of complications to do with having two copies of the
-   dynamic linker (valgrind's and the client's) coexisting in the same
-   process.  The alternative load address is needed because Valgrind
-   itself will load the client at whatever address it specifies, which
-   is almost invariably the default load address.  Hence we can't
-   allow Valgrind itself (viz, the tool executable) to be loaded at
-   that address.
-
-   Unfortunately there's no standard way to do 'static link at
-   alternative address', so this program handles the per-platform
-   hoop-jumping.
-*/
-
-/* What we get passed here is:
-   first arg
-      the alternative load address
-   all the rest of the args
-      the gcc invokation to do the final link, that
-      the build system would have done, left to itself
-
-   We just let assertions fail rather than do proper error reporting.
-   We don't expect the users to run this directly.  It is only run
-   from as part of the build process, with carefully constrained
-   inputs.
-*/
-
-/* ------------------------- LINUX ------------------------- */
-
-#if defined(VGO_linux)
-
-/* Scheme is simple: pass the specified command to the linker as-is,
-   except, add "-static" and "-Ttext=<argv[1]>" to it.
-*/
-
-// Don't NDEBUG this; the asserts are necesary for
-// safety checks.
-#include <assert.h>
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/wait.h>  /* WEXITSTATUS */
-
-int main ( int argc, char** argv )
-{
-   int         i;
-   int/*bool*/ failed = 0;
-   size_t      reqd = 0;
-
-   // expect at least: alt-load-address gcc -o foo bar.o
-   assert(argc > 5);
-
-   // check for plausible-ish alt load address
-   char* ala = argv[1];
-   assert(ala[0] == '0');
-   assert(ala[1] == 'x');
-
-   // We'll need to invoke this to do the linking
-   char* gcc = argv[2];
-
-   // and the 'restargs' are argv[3 ..]
-
-   // so, build up the complete command here:
-   // 'gcc' -static -Ttext='ala' 'restargs'
-
-   // first, do length safety checks
-   reqd += 1+ strlen(gcc);
-   reqd += 1+ 100/*let's say*/ + strlen(ala);
-   for (i = 3; i < argc; i++)
-      reqd += 1+ strlen(argv[i]);
-
-   reqd += 1;
-   char* cmd = calloc(reqd,1);
-   assert(cmd);
-
-   char ttext[100];
-   assert(strlen(ala) < 30);
-   memset(ttext, 0, sizeof(ttext));
-   sprintf(ttext, " -static -Wl,-Ttext=%s", ala);
-
-   strcpy(cmd, gcc);
-   strcat(cmd, ttext);
-   for (i = 3; i < argc; i++) {
-     strcat(cmd, " ");
-     strcat(cmd, argv[i]);
-   }
-
-   assert(cmd[reqd-1] == 0);
-
-   if (0) printf("\n");
-   printf("link_tool_exe: %s\n", cmd);
-   if (0) printf("\n");
-
-   int r = system(cmd);
-   if (r == -1 || WEXITSTATUS(r) != 0)
-      failed = 1;
-
-   free(cmd);
-
-   // return the result of system.
-   return failed ? 1 : 0;
-}
-
-/* ------------------------- DARWIN ------------------------ */
-
-#elif defined(VGO_darwin)
-
-/* Run the specified command as-is; ignore the specified load address
-   (argv[1]). */
-
-// Don't NDEBUG this; the asserts are necesary for
-// safety checks.
-#include <assert.h>
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-int main ( int argc, char** argv )
-{
-   int         i;
-   int/*bool*/ failed = 0;
-   size_t      reqd = 0;
-
-   // expect at least: alt-load-address gcc -o foo bar.o
-   assert(argc > 5);
-
-   // check for plausible-ish alt load address
-   char* ala = argv[1];
-   assert(ala[0] == '0');
-   assert(ala[1] == 'x');
-
-   // command to run is argv[2 ..]
-
-   // so, build up the complete command here:
-   // argv[2 ..]
-
-   // first, do length safety checks
-   for (i = 2; i < argc; i++)
-      reqd += 1+ strlen(argv[i]);
-
-   reqd += 1;
-   char* cmd = calloc(reqd,1);
-   assert(cmd);
-
-   for (i = 2; i < argc; i++) {
-     strcat(cmd, " ");
-     strcat(cmd, argv[i]);
-   }
-
-   assert(cmd[reqd-1] == 0);
-
-   if (0) printf("\n");
-   printf("link_tool_exe: %s\n", cmd);
-   if (0) printf("\n");
-
-   int r = system(cmd);
-   if (r == -1 || WEXITSTATUS(r) != 0)
-      failed = 1;
-
-   free(cmd);
-
-   // return the result of system.
-   return failed ? 1 : 0;
-}
-
-
-#else
-#  error "Unsupported OS"
-#endif
diff --git a/coregrind/link_tool_exe_aix5.in b/coregrind/link_tool_exe_aix5.in
new file mode 100644 (file)
index 0000000..b909db1
--- /dev/null
@@ -0,0 +1,6 @@
+#! @PERL@
+
+use warnings;
+use strict;
+
+die "link_tool_exe_@VGCONF_OS@ requires implementation";
diff --git a/coregrind/link_tool_exe_darwin.in b/coregrind/link_tool_exe_darwin.in
new file mode 100644 (file)
index 0000000..9d1b803
--- /dev/null
@@ -0,0 +1,52 @@
+#! @PERL@
+
+# This script handles linking the tool executables on MacOSX.
+#
+# What we get passed here is:
+#   first arg
+#      the alternative load address
+#   all the rest of the args
+#      the gcc invokation to do the final link, that
+#      the build system would have done, left to itself
+#
+# Just ignore argv[1] and run the command specified by argv[2..] unchanged.
+
+use warnings;
+use strict;
+
+# expect at least: alt-load-address gcc -o foo bar.o
+die "Not enougn arguments"
+    if (($#ARGV + 1) < 5);
+
+my $ala = $ARGV[0];
+
+# check for plausible-ish alt load address
+die "Bogus alt-load address"
+    if (length($ala) < 3 || index($ala, "0x") != 0);
+
+# The cc invokation to do the final link
+my $cc = $ARGV[1];
+
+# and the 'restargs' are argv[2 ..]
+
+# so, build up the complete command here:
+# 'cc' 'restargs'
+
+my $cmd="$cc";
+
+# Add the rest of the parameters
+foreach my $n (2 .. $#ARGV) {
+   $cmd = "$cmd $ARGV[$n]";
+}
+
+print "link_tool_exe_darwin: $cmd\n";
+
+
+# Execute the command:
+my $r = system("$cmd");
+
+if ($r == 0) {
+    exit 0;
+} else {
+    exit 1;
+}
diff --git a/coregrind/link_tool_exe_linux.in b/coregrind/link_tool_exe_linux.in
new file mode 100644 (file)
index 0000000..c6cfb9c
--- /dev/null
@@ -0,0 +1,89 @@
+#! @PERL@
+
+# This script handles linking the tool executables on Linux,
+# statically and at an alternative load address.
+#
+# Linking statically sidesteps all sorts of complications to do with
+# having two copies of the dynamic linker (valgrind's and the
+# client's) coexisting in the same process.  The alternative load
+# address is needed because Valgrind itself will load the client at
+# whatever address it specifies, which is almost invariably the
+# default load address.  Hence we can't allow Valgrind itself (viz,
+# the tool executable) to be loaded at that address.
+#
+# Unfortunately there's no standard way to do 'static link at
+# alternative address', so this program handles the per-platform
+# hoop-jumping.
+#
+#
+# What we get passed here is:
+#   first arg
+#      the alternative load address
+#   all the rest of the args
+#      the gcc invokation to do the final link, that
+#      the build system would have done, left to itself
+#
+# We just let the script 'die' if something is wrong, rather than do
+# proper error reporting.  We don't expect the users to run this 
+# directly.  It is only run as part of the build process, with 
+# carefully constrained inputs.
+#
+# Linux specific complications:
+#
+# - need to support both old GNU ld and gold: use -Ttext= to
+#   set the text segment address.
+#
+# - need to pass --build-id=none (that is, -Wl,--build-id=none to
+#   gcc) if it accepts it, to ensure the linker doesn't add a
+#   notes section which ends up at the default load address and
+#   so defeats our attempts to keep that address clear for the
+#   client.  However, older linkers don't support this flag, so it
+#   is tested for by configure.in and is shipped to us as part of
+#   argv[2 ..].
+#
+#
+# So: what we actually do:
+# 
+#   pass the specified command to the linker as-is, except, add
+#   "-static" and "-Ttext=<argv[1]>" to it.
+#
+
+use warnings;
+use strict;
+
+# expect at least: alt-load-address gcc -o foo bar.o
+die "Not enougn arguments"
+    if (($#ARGV + 1) < 5);
+
+my $ala = $ARGV[0];
+
+# check for plausible-ish alt load address
+die "Bogus alt-load address"
+    if (length($ala) < 3 || index($ala, "0x") != 0);
+
+# The cc invokation to do the final link
+my $cc = $ARGV[1];
+
+# and the 'restargs' are argv[2 ..]
+
+# so, build up the complete command here:
+# 'cc' -static -Ttext='ala' 'restargs'
+
+my $cmd="$cc -static -Wl,-Ttext=$ala";
+
+# Add the rest of the parameters
+foreach my $n (2 .. $#ARGV) {
+   $cmd = "$cmd $ARGV[$n]";
+}
+
+print "link_tool_exe_linux: $cmd\n";
+
+
+# Execute the command:
+my $r = system("$cmd");
+
+if ($r == 0) {
+    exit 0;
+} else {
+    exit 1;
+}
index 663d2f533023c949da0516cb687c5692e4b33d02..8fbe5d408e7b937398972ba9d7dad5f96c271bd8 100644 (file)
@@ -80,7 +80,7 @@ drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -100,7 +100,7 @@ drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
index 912e3493e352476ceb4cc18ac3d85a7b33641131..39721edfa9212fd61e9cdbd4bf251c44755c8cdb 100644 (file)
@@ -26,7 +26,7 @@ exp_bbv_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 exp_bbv_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 exp_bbv_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(exp_bbv_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -46,7 +46,7 @@ exp_bbv_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 exp_bbv_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 exp_bbv_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(exp_bbv_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
index 74c1c90489a4695cd3277f0801ca0879c60cbf52..d012195f9ffbdfc58e8b2b2edcccb2104cce6d40 100644 (file)
@@ -39,7 +39,7 @@ exp_ptrcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 exp_ptrcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 exp_ptrcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(exp_ptrcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -59,7 +59,7 @@ exp_ptrcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 exp_ptrcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 exp_ptrcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(exp_ptrcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
index b5d58c49c70e6c44049d1363a0587a55982177d6..a6a0de8506657d3f4d0f32c3b6db3a4492f8ecc6 100644 (file)
@@ -48,7 +48,7 @@ helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -68,7 +68,7 @@ helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
index 01a5a3ed45758768fb999dc0f07fa67e5c7050a6..56183247cda1fe3865954a668990a4ef02381046 100644 (file)
@@ -26,7 +26,7 @@ lackey_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 lackey_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 lackey_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(lackey_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -46,7 +46,7 @@ lackey_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 lackey_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 lackey_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(lackey_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
index 45ab681e78016cfdc9800131c8d546318aea7f42..2bba3729c570c6dae6a0af0f673c7d332a61e43c 100644 (file)
@@ -36,7 +36,7 @@ massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -56,7 +56,7 @@ massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
index 376a71a8a8977fb0bc81247a22ed3eb8610401dc..5be64a5f1fc8ae62fa42e72a5e874b15a8754bc0 100644 (file)
@@ -44,7 +44,7 @@ memcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 memcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 memcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(memcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -64,7 +64,7 @@ memcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 memcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 memcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(memcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
index ff335ae5acc759987f60b1580f0f2d843f65e4ea..186da4d9f41b6ddb3143c095db439afc5f6a2edf 100644 (file)
@@ -26,7 +26,7 @@ none_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
 none_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
 none_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(none_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
@@ -46,7 +46,7 @@ none_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
 none_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
        $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
 none_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
-       $(top_builddir)/coregrind/link_tool_exe \
+       $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
        @VALT_LOAD_ADDRESS@ \
        $(LINK) \
        $(none_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \