Mark Wielaard 72ae2f
diff --git a/configure.in b/configure.in
Mark Wielaard 72ae2f
index 391b763..9aadfa2 100644
Mark Wielaard 72ae2f
--- a/configure.in
Mark Wielaard 72ae2f
+++ b/configure.in
Mark Wielaard 72ae2f
@@ -1701,23 +1701,32 @@ AM_CONDITIONAL(DWARF4, test x$ac_have_dwarf4 = xyes)
Mark Wielaard 72ae2f
 CFLAGS=$safe_CFLAGS
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
-# does the linker support -Wl,--build-id=none ?  Note, it's
Mark Wielaard 72ae2f
-# important that we test indirectly via whichever C compiler
Mark Wielaard 72ae2f
-# is selected, rather than testing /usr/bin/ld or whatever
Mark Wielaard 72ae2f
-# directly.
Mark Wielaard 72ae2f
+# We want to use use the -Ttext-segment option to the linker.
Mark Wielaard 72ae2f
+# GNU (bfd) ld supports this directly. Newer GNU gold linkers
Mark Wielaard 72ae2f
+# support it as an alias of -Ttext. Sadly GNU (bfd) ld's -Ttext
Mark Wielaard 72ae2f
+# semantics are NOT what we want (GNU gold -Ttext is fine).
Mark Wielaard 72ae2f
+#
Mark Wielaard 72ae2f
+# For GNU (bfd) ld -Ttext-segment chooses the base at which ELF headers
Mark Wielaard 72ae2f
+# will reside. -Ttext aligns just the .text section start (but not any
Mark Wielaard 72ae2f
+# other section).
Mark Wielaard 72ae2f
+#
Mark Wielaard 72ae2f
+# So test for -Ttext-segment which is supported by all bfd ld versions
Mark Wielaard 72ae2f
+# and use that if it exists. If it doesn't exist it must be an older
Mark Wielaard 72ae2f
+# version of gold and we can fall back to using -Ttext which has the
Mark Wielaard 72ae2f
+# right semantics.
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
-AC_MSG_CHECKING([if the linker accepts -Wl,--build-id=none])
Mark Wielaard 72ae2f
+AC_MSG_CHECKING([if the linker accepts -Wl,-Ttext-segment])
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
 safe_CFLAGS=$CFLAGS
Mark Wielaard 72ae2f
-CFLAGS="-Wl,--build-id=none"
Mark Wielaard 72ae2f
+CFLAGS="-Wl,-Ttext-segment=$valt_load_address_pri_norml"
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
 AC_LINK_IFELSE(
Mark Wielaard 72ae2f
 [AC_LANG_PROGRAM([ ], [return 0;])],
Mark Wielaard 72ae2f
 [
Mark Wielaard 72ae2f
-  AC_SUBST([FLAG_NO_BUILD_ID], ["-Wl,--build-id=none"])
Mark Wielaard 72ae2f
+  AC_SUBST([FLAG_T_TEXT], ["-Ttext-segment"])
Mark Wielaard 72ae2f
   AC_MSG_RESULT([yes])
Mark Wielaard 72ae2f
 ], [
Mark Wielaard 72ae2f
-  AC_SUBST([FLAG_NO_BUILD_ID], [""])
Mark Wielaard 72ae2f
+  AC_SUBST([FLAG_T_TEXT], ["-Ttext"])
Mark Wielaard 72ae2f
   AC_MSG_RESULT([no])
Mark Wielaard 72ae2f
 ])
Mark Wielaard 72ae2f
 CFLAGS=$safe_CFLAGS
Mark Wielaard 257198
diff --git a/configure.in b/configure.in
Mark Wielaard 257198
index 6e2a675..424f8e6 100644
Mark Wielaard 257198
--- a/configure.in
Mark Wielaard 257198
+++ b/configure.in
Mark Wielaard 257198
@@ -1723,14 +1723,46 @@ CFLAGS="-Wl,-Ttext-segment=$valt_load_address_pri_norml"
Mark Wielaard 257198
 AC_LINK_IFELSE(
Mark Wielaard 257198
 [AC_LANG_PROGRAM([ ], [return 0;])],
Mark Wielaard 257198
 [
Mark Wielaard 257198
+  linker_using_t_text="no"
Mark Wielaard 257198
   AC_SUBST([FLAG_T_TEXT], ["-Ttext-segment"])
Mark Wielaard 257198
   AC_MSG_RESULT([yes])
Mark Wielaard 257198
 ], [
Mark Wielaard 257198
+  linker_using_t_text="yes"
Mark Wielaard 257198
   AC_SUBST([FLAG_T_TEXT], ["-Ttext"])
Mark Wielaard 257198
   AC_MSG_RESULT([no])
Mark Wielaard 257198
 ])
Mark Wielaard 257198
 CFLAGS=$safe_CFLAGS
Mark Wielaard 257198
 
Mark Wielaard 257198
+# If the linker only supports -Ttext (not -Ttext-segment) then we will
Mark Wielaard 257198
+# have to strip any build-id ELF NOTEs from the staticly linked tools.
Mark Wielaard 257198
+# Otherwise the build-id NOTE might end up at the default load address.
Mark Wielaard 257198
+# (Pedantically if the linker is gold then -Ttext is fine, but newer
Mark Wielaard 257198
+# gold versions also support -Ttext-segment. So just assume that unless
Mark Wielaard 257198
+# we can use -Ttext-segment we need to strip the build-id NOTEs.
Mark Wielaard 257198
+if test "x${linker_using_t_text}" == "xyes"; then
Mark Wielaard 257198
+AC_MSG_NOTICE([ld -Ttext used, need to strip build-id NOTEs.])
Mark Wielaard 257198
+# does the linker support -Wl,--build-id=none ?  Note, it's
Mark Wielaard 257198
+# important that we test indirectly via whichever C compiler
Mark Wielaard 257198
+# is selected, rather than testing /usr/bin/ld or whatever
Mark Wielaard 257198
+# directly.
Mark Wielaard 257198
+AC_MSG_CHECKING([if the linker accepts -Wl,--build-id=none])
Mark Wielaard 257198
+safe_CFLAGS=$CFLAGS
Mark Wielaard 257198
+CFLAGS="-Wl,--build-id=none"
Mark Wielaard 257198
+
Mark Wielaard 257198
+AC_LINK_IFELSE(
Mark Wielaard 257198
+[AC_LANG_PROGRAM([ ], [return 0;])],
Mark Wielaard 257198
+[
Mark Wielaard 257198
+  AC_SUBST([FLAG_NO_BUILD_ID], ["-Wl,--build-id=none"])
Mark Wielaard 257198
+  AC_MSG_RESULT([yes])
Mark Wielaard 257198
+], [
Mark Wielaard 257198
+  AC_SUBST([FLAG_NO_BUILD_ID], [""])
Mark Wielaard 257198
+  AC_MSG_RESULT([no])
Mark Wielaard 257198
+])
Mark Wielaard 257198
+else
Mark Wielaard 257198
+AC_MSG_NOTICE([ld -Ttext-segment used, no need to strip build-id NOTEs.])
Mark Wielaard 257198
+AC_SUBST([FLAG_NO_BUILD_ID], [""])
Mark Wielaard 257198
+fi
Mark Wielaard 257198
+CFLAGS=$safe_CFLAGS
Mark Wielaard 257198
 
Mark Wielaard 257198
 # does the ppc assembler support "mtocrf" et al?
Mark Wielaard 257198
 AC_MSG_CHECKING([if ppc32/64 as supports mtocrf/mfocrf])
Mark Wielaard 72ae2f
--- valgrind-3.8.1.orig/coregrind/link_tool_exe_linux.in	2013-03-20 16:59:08.834198437 +0100
Mark Wielaard 72ae2f
+++ valgrind-3.8.1/coregrind/link_tool_exe_linux.in	2013-03-20 17:02:20.184864053 +0100
Mark Wielaard 72ae2f
@@ -27,24 +27,20 @@
Mark Wielaard 72ae2f
 # directly.  It is only run as part of the build process, with 
Mark Wielaard 72ae2f
 # carefully constrained inputs.
Mark Wielaard 72ae2f
 #
Mark Wielaard 72ae2f
-# Linux specific complications:
Mark Wielaard 72ae2f
+# Linux specific complication:
Mark Wielaard 72ae2f
 #
Mark Wielaard 72ae2f
 # - need to support both old GNU ld and gold: use -Ttext= to
Mark Wielaard 72ae2f
-#   set the text segment address.
Mark Wielaard 72ae2f
-#
Mark Wielaard 72ae2f
-# - need to pass --build-id=none (that is, -Wl,--build-id=none to
Mark Wielaard 72ae2f
-#   gcc) if it accepts it, to ensure the linker doesn't add a
Mark Wielaard 72ae2f
-#   notes section which ends up at the default load address and
Mark Wielaard 72ae2f
-#   so defeats our attempts to keep that address clear for the
Mark Wielaard 72ae2f
-#   client.  However, older linkers don't support this flag, so it
Mark Wielaard 72ae2f
-#   is tested for by configure.in and is shipped to us as part of
Mark Wielaard 72ae2f
-#   argv[2 ..].
Mark Wielaard 72ae2f
+#   set the text segment address if that is all we have. We really
Mark Wielaard 72ae2f
+#   need -Ttext-segment. Otherwise with GNU ld sections or notes
Mark Wielaard 72ae2f
+#   (like the build-id) don't get at the desired address. Luckily
Mark Wielaard 72ae2f
+#   -Ttext does the right thing for gold. So configure checks for
Mark Wielaard 72ae2f
+#   us and sets FLAG_T_TEXT.
Mark Wielaard 72ae2f
 #
Mark Wielaard 72ae2f
 #
Mark Wielaard 72ae2f
 # So: what we actually do:
Mark Wielaard 72ae2f
 # 
Mark Wielaard 72ae2f
 #   pass the specified command to the linker as-is, except, add
Mark Wielaard 72ae2f
-#   "-static" and "-Ttext=<argv[1]>" to it.
Mark Wielaard 72ae2f
+#   "-static" and "-Ttext[-segment]=<argv[1]>" to it.
Mark Wielaard 72ae2f
 #
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
 use warnings;
Mark Wielaard 72ae2f
@@ -66,7 +62,7 @@
Mark Wielaard 72ae2f
 # and the 'restargs' are argv[2 ..]
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
 # so, build up the complete command here:
Mark Wielaard 72ae2f
-# 'cc' -static -Ttext='ala' 'restargs'
Mark Wielaard 72ae2f
+# 'cc' -static -Ttext[-segment]='ala' 'restargs'
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
 # For mips we need to use "--section-start=.reginfo=$ala" because
Mark Wielaard 72ae2f
 # "--section-start=.reginfo=$ala" will put all the sections to the 
Mark Wielaard 72ae2f
@@ -78,7 +74,7 @@
Mark Wielaard 72ae2f
 if (($arch eq 'mips') || ($arch eq 'mipsel')) {
Mark Wielaard 72ae2f
    $cmd = "$cc -static -Wl,--section-start=.reginfo=$ala";
Mark Wielaard 72ae2f
 } else {
Mark Wielaard 72ae2f
-   $cmd = "$cc -static -Wl,-Ttext=$ala";
Mark Wielaard 72ae2f
+   $cmd = "$cc -static -Wl,@FLAG_T_TEXT@=$ala";
Mark Wielaard 72ae2f
 }
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
 # Add the rest of the parameters
Mark Wielaard 72ae2f
Only in valgrind-3.8.1: autom4te.cache
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/auxprogs/Makefile.in valgrind-3.8.1/auxprogs/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/auxprogs/Makefile.in	2013-04-02 17:57:17.050898570 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/auxprogs/Makefile.in	2013-04-02 17:57:28.199938856 +0200
Mark Wielaard 257198
@@ -120,6 +120,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/cachegrind/Makefile.in valgrind-3.8.1/cachegrind/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/cachegrind/Makefile.in	2013-04-02 17:57:17.030898498 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/cachegrind/Makefile.in	2013-04-02 17:57:28.301939225 +0200
Mark Wielaard 257198
@@ -222,6 +222,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/cachegrind/tests/Makefile.in valgrind-3.8.1/cachegrind/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/cachegrind/tests/Makefile.in	2013-04-02 17:57:17.030898498 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/cachegrind/tests/Makefile.in	2013-04-02 17:57:28.356939423 +0200
Mark Wielaard 257198
@@ -168,6 +168,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/cachegrind/tests/x86/Makefile.in valgrind-3.8.1/cachegrind/tests/x86/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/cachegrind/tests/x86/Makefile.in	2013-04-02 17:57:17.030898498 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/cachegrind/tests/x86/Makefile.in	2013-04-02 17:57:28.402939589 +0200
Mark Wielaard 257198
@@ -120,6 +120,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/callgrind/Makefile.in valgrind-3.8.1/callgrind/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/callgrind/Makefile.in	2013-04-02 17:57:17.146898918 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/callgrind/Makefile.in	2013-04-02 17:57:28.556940145 +0200
Mark Wielaard 257198
@@ -239,6 +239,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/callgrind/tests/Makefile.in valgrind-3.8.1/callgrind/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/callgrind/tests/Makefile.in	2013-04-02 17:57:17.146898918 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/callgrind/tests/Makefile.in	2013-04-02 17:57:28.608940333 +0200
Mark Wielaard 257198
@@ -161,6 +161,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/configure valgrind-3.8.1/configure
Mark Wielaard 257198
--- valgrind-3.8.1.orig/configure	2013-04-02 17:57:17.158898961 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/configure	2013-04-02 17:57:32.984956139 +0200
Mark Wielaard 257198
@@ -657,6 +657,7 @@
Mark Wielaard 72ae2f
 BUILD_SSE3_TESTS_FALSE
Mark Wielaard 72ae2f
 BUILD_SSE3_TESTS_TRUE
Mark Wielaard 257198
 FLAG_NO_BUILD_ID
Mark Wielaard 72ae2f
+FLAG_T_TEXT
Mark Wielaard 72ae2f
 DWARF4_FALSE
Mark Wielaard 72ae2f
 DWARF4_TRUE
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
Mark Wielaard 257198
@@ -7913,14 +7914,73 @@
Mark Wielaard 72ae2f
 CFLAGS=$safe_CFLAGS
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
 
Mark Wielaard 72ae2f
+# We want to use use the -Ttext-segment option to the linker.
Mark Wielaard 72ae2f
+# GNU (bfd) ld supports this directly. Newer GNU gold linkers
Mark Wielaard 72ae2f
+# support it as an alias of -Ttext. Sadly GNU (bfd) ld's -Ttext
Mark Wielaard 72ae2f
+# semantics are NOT what we want (GNU gold -Ttext is fine).
Mark Wielaard 72ae2f
+#
Mark Wielaard 72ae2f
+# For GNU (bfd) ld -Ttext-segment chooses the base at which ELF headers
Mark Wielaard 72ae2f
+# will reside. -Ttext aligns just the .text section start (but not any
Mark Wielaard 72ae2f
+# other section).
Mark Wielaard 72ae2f
+#
Mark Wielaard 72ae2f
+# So test for -Ttext-segment which is supported by all bfd ld versions
Mark Wielaard 72ae2f
+# and use that if it exists. If it doesn't exist it must be an older
Mark Wielaard 72ae2f
+# version of gold and we can fall back to using -Ttext which has the
Mark Wielaard 72ae2f
+# right semantics.
Mark Wielaard 257198
+
Mark Wielaard 72ae2f
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,-Ttext-segment" >&5
Mark Wielaard 72ae2f
+$as_echo_n "checking if the linker accepts -Wl,-Ttext-segment... " >&6; }
Mark Wielaard 257198
+
Mark Wielaard 257198
+safe_CFLAGS=$CFLAGS
Mark Wielaard 72ae2f
+CFLAGS="-Wl,-Ttext-segment=$valt_load_address_pri_norml"
Mark Wielaard 257198
+
Mark Wielaard 257198
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Wielaard 257198
+/* end confdefs.h.  */
Mark Wielaard 257198
+
Mark Wielaard 257198
+int
Mark Wielaard 257198
+main ()
Mark Wielaard 257198
+{
Mark Wielaard 257198
+return 0;
Mark Wielaard 257198
+  ;
Mark Wielaard 257198
+  return 0;
Mark Wielaard 257198
+}
Mark Wielaard 257198
+_ACEOF
Mark Wielaard 257198
+if ac_fn_c_try_link "$LINENO"; then :
Mark Wielaard 257198
+
Mark Wielaard 257198
+  linker_using_t_text="no"
Mark Wielaard 72ae2f
+  FLAG_T_TEXT="-Ttext-segment"
Mark Wielaard 257198
+
Mark Wielaard 257198
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Mark Wielaard 257198
+$as_echo "yes" >&6; }
Mark Wielaard 257198
+
Mark Wielaard 257198
+else
Mark Wielaard 257198
+
Mark Wielaard 257198
+  linker_using_t_text="yes"
Mark Wielaard 72ae2f
+  FLAG_T_TEXT="-Ttext"
Mark Wielaard 257198
+
Mark Wielaard 257198
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Mark Wielaard 257198
+$as_echo "no" >&6; }
Mark Wielaard 257198
+
Mark Wielaard 257198
+fi
Mark Wielaard 257198
+rm -f core conftest.err conftest.$ac_objext \
Mark Wielaard 257198
+    conftest$ac_exeext conftest.$ac_ext
Mark Wielaard 257198
+CFLAGS=$safe_CFLAGS
Mark Wielaard 257198
+
Mark Wielaard 257198
+# If the linker only supports -Ttext (not -Ttext-segment) then we will
Mark Wielaard 257198
+# have to strip any build-id ELF NOTEs from the staticly linked tools.
Mark Wielaard 257198
+# Otherwise the build-id NOTE might end up at the default load address.
Mark Wielaard 257198
+# (Pedantically if the linker is gold then -Ttext is fine, but newer
Mark Wielaard 257198
+# gold versions also support -Ttext-segment. So just assume that unless
Mark Wielaard 257198
+# we can use -Ttext-segment we need to strip the build-id NOTEs.
Mark Wielaard 257198
+if test "x${linker_using_t_text}" == "xyes"; then
Mark Wielaard 257198
+{ $as_echo "$as_me:${as_lineno-$LINENO}: ld -Ttext used, need to strip build-id NOTEs." >&5
Mark Wielaard 257198
+$as_echo "$as_me: ld -Ttext used, need to strip build-id NOTEs." >&6;}
Mark Wielaard 257198
 # does the linker support -Wl,--build-id=none ?  Note, it's
Mark Wielaard 257198
 # important that we test indirectly via whichever C compiler
Mark Wielaard 257198
 # is selected, rather than testing /usr/bin/ld or whatever
Mark Wielaard 257198
 # directly.
Mark Wielaard 257198
-
Mark Wielaard 257198
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
Mark Wielaard 257198
 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
Mark Wielaard 257198
-
Mark Wielaard 257198
 safe_CFLAGS=$CFLAGS
Mark Wielaard 257198
 CFLAGS="-Wl,--build-id=none"
Mark Wielaard 257198
 
Mark Wielaard 257198
@@ -7952,8 +8012,13 @@
Mark Wielaard 257198
 fi
Mark Wielaard 257198
 rm -f core conftest.err conftest.$ac_objext \
Mark Wielaard 257198
     conftest$ac_exeext conftest.$ac_ext
Mark Wielaard 257198
-CFLAGS=$safe_CFLAGS
Mark Wielaard 257198
+else
Mark Wielaard 257198
+{ $as_echo "$as_me:${as_lineno-$LINENO}: ld -Ttext-segment used, no need to strip build-id NOTEs." >&5
Mark Wielaard 257198
+$as_echo "$as_me: ld -Ttext-segment used, no need to strip build-id NOTEs." >&6;}
Mark Wielaard 257198
+FLAG_NO_BUILD_ID=""
Mark Wielaard 257198
 
Mark Wielaard 257198
+fi
Mark Wielaard 257198
+CFLAGS=$safe_CFLAGS
Mark Wielaard 257198
 
Mark Wielaard 257198
 # does the ppc assembler support "mtocrf" et al?
Mark Wielaard 257198
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/coregrind/Makefile.in valgrind-3.8.1/coregrind/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/coregrind/Makefile.in	2013-04-02 17:57:17.116898809 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/coregrind/Makefile.in	2013-04-02 17:57:29.304942848 +0200
Mark Wielaard 257198
@@ -703,6 +703,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/docs/Makefile.in valgrind-3.8.1/docs/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/docs/Makefile.in	2013-04-02 17:57:17.157898957 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/docs/Makefile.in	2013-04-02 17:57:29.344942992 +0200
Mark Wielaard 257198
@@ -83,6 +83,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/drd/Makefile.in valgrind-3.8.1/drd/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/drd/Makefile.in	2013-04-02 17:57:17.049898567 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/drd/Makefile.in	2013-04-02 17:57:29.491943523 +0200
Mark Wielaard 257198
@@ -268,6 +268,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/drd/tests/Makefile.in valgrind-3.8.1/drd/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/drd/tests/Makefile.in	2013-04-02 17:57:17.043898545 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/drd/tests/Makefile.in	2013-04-02 17:57:29.625944007 +0200
Mark Wielaard 257198
@@ -477,6 +477,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-bbv/Makefile.in valgrind-3.8.1/exp-bbv/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-bbv/Makefile.in	2013-04-02 17:57:17.162898976 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-bbv/Makefile.in	2013-04-02 17:57:29.688944235 +0200
Mark Wielaard 257198
@@ -168,6 +168,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-bbv/tests/amd64-linux/Makefile.in valgrind-3.8.1/exp-bbv/tests/amd64-linux/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-bbv/tests/amd64-linux/Makefile.in	2013-04-02 17:57:17.161898973 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-bbv/tests/amd64-linux/Makefile.in	2013-04-02 17:57:29.788944595 +0200
Mark Wielaard 257198
@@ -140,6 +140,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-bbv/tests/arm-linux/Makefile.in valgrind-3.8.1/exp-bbv/tests/arm-linux/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-bbv/tests/arm-linux/Makefile.in	2013-04-02 17:57:17.160898969 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-bbv/tests/arm-linux/Makefile.in	2013-04-02 17:57:29.836944769 +0200
Mark Wielaard 257198
@@ -123,6 +123,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-bbv/tests/Makefile.in valgrind-3.8.1/exp-bbv/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-bbv/tests/Makefile.in	2013-04-02 17:57:17.162898976 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-bbv/tests/Makefile.in	2013-04-02 17:57:29.735944405 +0200
Mark Wielaard 257198
@@ -151,6 +151,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-bbv/tests/ppc32-linux/Makefile.in valgrind-3.8.1/exp-bbv/tests/ppc32-linux/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-bbv/tests/ppc32-linux/Makefile.in	2013-04-02 17:57:17.159898965 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-bbv/tests/ppc32-linux/Makefile.in	2013-04-02 17:57:29.885944945 +0200
Mark Wielaard 257198
@@ -123,6 +123,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-bbv/tests/x86/Makefile.in valgrind-3.8.1/exp-bbv/tests/x86/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-bbv/tests/x86/Makefile.in	2013-04-02 17:57:17.162898976 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-bbv/tests/x86/Makefile.in	2013-04-02 17:57:29.987945315 +0200
Mark Wielaard 257198
@@ -132,6 +132,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-bbv/tests/x86-linux/Makefile.in valgrind-3.8.1/exp-bbv/tests/x86-linux/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-bbv/tests/x86-linux/Makefile.in	2013-04-02 17:57:17.160898969 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-bbv/tests/x86-linux/Makefile.in	2013-04-02 17:57:29.935945126 +0200
Mark Wielaard 257198
@@ -123,6 +123,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-dhat/Makefile.in valgrind-3.8.1/exp-dhat/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-dhat/Makefile.in	2013-04-02 17:57:17.143898906 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-dhat/Makefile.in	2013-04-02 17:57:30.052945550 +0200
Mark Wielaard 257198
@@ -192,6 +192,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-dhat/tests/Makefile.in valgrind-3.8.1/exp-dhat/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-dhat/tests/Makefile.in	2013-04-02 17:57:17.143898906 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-dhat/tests/Makefile.in	2013-04-02 17:57:30.083945661 +0200
Mark Wielaard 257198
@@ -83,6 +83,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-sgcheck/Makefile.in valgrind-3.8.1/exp-sgcheck/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-sgcheck/Makefile.in	2013-04-02 17:57:17.127898849 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-sgcheck/Makefile.in	2013-04-02 17:57:30.168945969 +0200
Mark Wielaard 257198
@@ -211,6 +211,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/exp-sgcheck/tests/Makefile.in valgrind-3.8.1/exp-sgcheck/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/exp-sgcheck/tests/Makefile.in	2013-04-02 17:57:17.126898845 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/exp-sgcheck/tests/Makefile.in	2013-04-02 17:57:30.227946183 +0200
Mark Wielaard 257198
@@ -146,6 +146,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/gdbserver_tests/Makefile.in valgrind-3.8.1/gdbserver_tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/gdbserver_tests/Makefile.in	2013-04-02 17:57:17.121898828 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/gdbserver_tests/Makefile.in	2013-04-02 17:57:30.284946388 +0200
Mark Wielaard 257198
@@ -153,6 +153,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/helgrind/Makefile.in valgrind-3.8.1/helgrind/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/helgrind/Makefile.in	2013-04-02 17:57:17.138898889 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/helgrind/Makefile.in	2013-04-02 17:57:30.380946734 +0200
Mark Wielaard 257198
@@ -235,6 +235,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/helgrind/tests/Makefile.in valgrind-3.8.1/helgrind/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/helgrind/tests/Makefile.in	2013-04-02 17:57:17.134898874 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/helgrind/tests/Makefile.in	2013-04-02 17:57:30.473947070 +0200
Mark Wielaard 257198
@@ -359,6 +359,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/include/Makefile.in valgrind-3.8.1/include/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/include/Makefile.in	2013-04-02 17:57:17.141898898 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/include/Makefile.in	2013-04-02 17:57:30.509947200 +0200
Mark Wielaard 257198
@@ -110,6 +110,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/lackey/Makefile.in valgrind-3.8.1/lackey/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/lackey/Makefile.in	2013-04-02 17:57:16.946898195 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/lackey/Makefile.in	2013-04-02 17:57:30.569947417 +0200
Mark Wielaard 257198
@@ -168,6 +168,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/lackey/tests/Makefile.in valgrind-3.8.1/lackey/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/lackey/tests/Makefile.in	2013-04-02 17:57:16.945898192 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/lackey/tests/Makefile.in	2013-04-02 17:57:30.601947533 +0200
Mark Wielaard 257198
@@ -86,6 +86,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/Makefile.in valgrind-3.8.1/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/Makefile.in	2013-04-02 17:57:17.144898910 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/Makefile.in	2013-04-02 17:57:32.681955045 +0200
Mark Wielaard 257198
@@ -184,6 +184,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/Makefile.vex.in valgrind-3.8.1/Makefile.vex.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/Makefile.vex.in	2013-04-02 17:57:17.127898849 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/Makefile.vex.in	2013-04-02 17:57:28.148938672 +0200
Mark Wielaard 257198
@@ -250,6 +250,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/massif/Makefile.in valgrind-3.8.1/massif/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/massif/Makefile.in	2013-04-02 17:57:16.956898231 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/massif/Makefile.in	2013-04-02 17:57:30.667947771 +0200
Mark Wielaard 257198
@@ -217,6 +217,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/massif/tests/Makefile.in valgrind-3.8.1/massif/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/massif/tests/Makefile.in	2013-04-02 17:57:16.954898223 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/massif/tests/Makefile.in	2013-04-02 17:57:30.731948003 +0200
Mark Wielaard 257198
@@ -201,6 +201,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/Makefile.in valgrind-3.8.1/memcheck/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/Makefile.in	2013-04-02 17:57:17.098898743 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/Makefile.in	2013-04-02 17:57:30.827948350 +0200
Mark Wielaard 257198
@@ -235,6 +235,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/amd64/Makefile.in valgrind-3.8.1/memcheck/tests/amd64/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/amd64/Makefile.in	2013-04-02 17:57:17.097898740 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/amd64/Makefile.in	2013-04-02 17:57:31.141949484 +0200
Mark Wielaard 257198
@@ -142,6 +142,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/amd64-linux/Makefile.in valgrind-3.8.1/memcheck/tests/amd64-linux/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/amd64-linux/Makefile.in	2013-04-02 17:57:17.082898686 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/amd64-linux/Makefile.in	2013-04-02 17:57:31.087949289 +0200
Mark Wielaard 257198
@@ -123,6 +123,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/darwin/Makefile.in valgrind-3.8.1/memcheck/tests/darwin/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/darwin/Makefile.in	2013-04-02 17:57:17.086898701 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/darwin/Makefile.in	2013-04-02 17:57:31.194949675 +0200
Mark Wielaard 257198
@@ -143,6 +143,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/linux/Makefile.in valgrind-3.8.1/memcheck/tests/linux/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/linux/Makefile.in	2013-04-02 17:57:17.069898639 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/linux/Makefile.in	2013-04-02 17:57:31.249949874 +0200
Mark Wielaard 257198
@@ -159,6 +159,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/Makefile.in valgrind-3.8.1/memcheck/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/Makefile.in	2013-04-02 17:57:17.084898693 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/Makefile.in	2013-04-02 17:57:31.033949093 +0200
Mark Wielaard 257198
@@ -732,6 +732,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/ppc32/Makefile.in valgrind-3.8.1/memcheck/tests/ppc32/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/ppc32/Makefile.in	2013-04-02 17:57:17.064898621 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/ppc32/Makefile.in	2013-04-02 17:57:31.299950054 +0200
Mark Wielaard 257198
@@ -120,6 +120,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/ppc64/Makefile.in valgrind-3.8.1/memcheck/tests/ppc64/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/ppc64/Makefile.in	2013-04-02 17:57:17.087898705 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/ppc64/Makefile.in	2013-04-02 17:57:31.349950235 +0200
Mark Wielaard 257198
@@ -120,6 +120,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/s390x/Makefile.in valgrind-3.8.1/memcheck/tests/s390x/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/s390x/Makefile.in	2013-04-02 17:57:17.083898689 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/s390x/Makefile.in	2013-04-02 17:57:31.400950418 +0200
Mark Wielaard 257198
@@ -135,6 +135,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/x86/Makefile.in valgrind-3.8.1/memcheck/tests/x86/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/x86/Makefile.in	2013-04-02 17:57:17.093898726 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/x86/Makefile.in	2013-04-02 17:57:31.517950841 +0200
Mark Wielaard 257198
@@ -165,6 +165,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/memcheck/tests/x86-linux/Makefile.in valgrind-3.8.1/memcheck/tests/x86-linux/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/memcheck/tests/x86-linux/Makefile.in	2013-04-02 17:57:17.073898654 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/memcheck/tests/x86-linux/Makefile.in	2013-04-02 17:57:31.453950611 +0200
Mark Wielaard 257198
@@ -143,6 +143,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/mpi/Makefile.in valgrind-3.8.1/mpi/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/mpi/Makefile.in	2013-04-02 17:57:16.948898201 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/mpi/Makefile.in	2013-04-02 17:57:31.572951039 +0200
Mark Wielaard 257198
@@ -141,6 +141,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/Makefile.in valgrind-3.8.1/none/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/Makefile.in	2013-04-02 17:57:17.028898490 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/Makefile.in	2013-04-02 17:57:31.632951257 +0200
Mark Wielaard 257198
@@ -166,6 +166,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/amd64/Makefile.in valgrind-3.8.1/none/tests/amd64/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/amd64/Makefile.in	2013-04-02 17:57:17.023898473 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/amd64/Makefile.in	2013-04-02 17:57:31.863952092 +0200
Mark Wielaard 257198
@@ -345,6 +345,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/arm/Makefile.in valgrind-3.8.1/none/tests/arm/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/arm/Makefile.in	2013-04-02 17:57:16.976898304 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/arm/Makefile.in	2013-04-02 17:57:31.933952345 +0200
Mark Wielaard 257198
@@ -157,6 +157,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/darwin/Makefile.in valgrind-3.8.1/none/tests/darwin/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/darwin/Makefile.in	2013-04-02 17:57:16.998898383 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/darwin/Makefile.in	2013-04-02 17:57:31.982952522 +0200
Mark Wielaard 257198
@@ -125,6 +125,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/linux/Makefile.in valgrind-3.8.1/none/tests/linux/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/linux/Makefile.in	2013-04-02 17:57:16.967898270 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/linux/Makefile.in	2013-04-02 17:57:32.032952702 +0200
Mark Wielaard 257198
@@ -128,6 +128,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/Makefile.in valgrind-3.8.1/none/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/Makefile.in	2013-04-02 17:57:16.998898383 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/Makefile.in	2013-04-02 17:57:31.762951727 +0200
Mark Wielaard 257198
@@ -504,6 +504,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/mips32/Makefile.in valgrind-3.8.1/none/tests/mips32/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/mips32/Makefile.in	2013-04-02 17:57:16.979898314 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/mips32/Makefile.in	2013-04-02 17:57:32.088952903 +0200
Mark Wielaard 257198
@@ -152,6 +152,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/ppc32/Makefile.in valgrind-3.8.1/none/tests/ppc32/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/ppc32/Makefile.in	2013-04-02 17:57:16.962898252 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/ppc32/Makefile.in	2013-04-02 17:57:32.178953228 +0200
Mark Wielaard 257198
@@ -234,6 +234,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/ppc64/Makefile.in valgrind-3.8.1/none/tests/ppc64/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/ppc64/Makefile.in	2013-04-02 17:57:17.003898401 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/ppc64/Makefile.in	2013-04-02 17:57:32.260953525 +0200
Mark Wielaard 257198
@@ -201,6 +201,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/s390x/Makefile.in valgrind-3.8.1/none/tests/s390x/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/s390x/Makefile.in	2013-04-02 17:57:16.993898365 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/s390x/Makefile.in	2013-04-02 17:57:32.366953907 +0200
Mark Wielaard 257198
@@ -382,6 +382,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/x86/Makefile.in valgrind-3.8.1/none/tests/x86/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/x86/Makefile.in	2013-04-02 17:57:17.013898436 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/x86/Makefile.in	2013-04-02 17:57:32.511954432 +0200
Mark Wielaard 257198
@@ -307,6 +307,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/none/tests/x86-linux/Makefile.in valgrind-3.8.1/none/tests/x86-linux/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/none/tests/x86-linux/Makefile.in	2013-04-02 17:57:16.969898276 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/none/tests/x86-linux/Makefile.in	2013-04-02 17:57:32.415954086 +0200
Mark Wielaard 257198
@@ -121,6 +121,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/perf/Makefile.in valgrind-3.8.1/perf/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/perf/Makefile.in	2013-04-02 17:57:17.124898837 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/perf/Makefile.in	2013-04-02 17:57:32.572954652 +0200
Mark Wielaard 257198
@@ -153,6 +153,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 72ae2f
diff -ur valgrind-3.8.1.orig/tests/Makefile.in valgrind-3.8.1/tests/Makefile.in
Mark Wielaard 257198
--- valgrind-3.8.1.orig/tests/Makefile.in	2013-04-02 17:57:17.143898906 +0200
Mark Wielaard 257198
+++ valgrind-3.8.1/tests/Makefile.in	2013-04-02 17:57:32.627954850 +0200
Mark Wielaard 257198
@@ -139,6 +139,7 @@
Mark Wielaard 72ae2f
 FLAG_MMMX = @FLAG_MMMX@
Mark Wielaard 72ae2f
 FLAG_MSSE = @FLAG_MSSE@
Mark Wielaard 257198
 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
Mark Wielaard 72ae2f
+FLAG_T_TEXT = @FLAG_T_TEXT@
Mark Wielaard 72ae2f
 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
Mark Wielaard 72ae2f
 FLAG_W_EXTRA = @FLAG_W_EXTRA@
Mark Wielaard 72ae2f
 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
Mark Wielaard 00efda
Mark Wielaard 00efda
commit 0e6f91f20c180a37e32a7688b93c94f73aede0b6
Mark Wielaard 00efda
Author: Mark Wielaard <mjw@redhat.com>
Mark Wielaard 00efda
Date:   Wed Apr 17 20:30:10 2013 +0200
Mark Wielaard 00efda
Mark Wielaard 00efda
    Fix -Ttext-segment configure check.
Mark Wielaard 00efda
    
Mark Wielaard 00efda
    Explicitly test together with -static -nodefaultlibs -nostartfiles to mimic
Mark Wielaard 00efda
    what the tools linking script does. At least on s390 the test might fail for
Mark Wielaard 00efda
    a non-static AC_LINK, while it does work when using those other flags too.
Mark Wielaard 00efda
Mark Wielaard 00efda
diff --git a/configure.in b/configure.in
Mark Wielaard 00efda
index 424f8e6..9a1db0c 100644
Mark Wielaard 00efda
--- a/configure.in
Mark Wielaard 00efda
+++ b/configure.in
Mark Wielaard 00efda
@@ -1718,10 +1718,10 @@ CFLAGS=$safe_CFLAGS
Mark Wielaard 00efda
 AC_MSG_CHECKING([if the linker accepts -Wl,-Ttext-segment])
Mark Wielaard 00efda
 
Mark Wielaard 00efda
 safe_CFLAGS=$CFLAGS
Mark Wielaard 00efda
-CFLAGS="-Wl,-Ttext-segment=$valt_load_address_pri_norml"
Mark Wielaard 00efda
+CFLAGS="-static -nodefaultlibs -nostartfiles -Wl,-Ttext-segment=$valt_load_address_pri_norml"
Mark Wielaard 00efda
 
Mark Wielaard 00efda
 AC_LINK_IFELSE(
Mark Wielaard 00efda
-[AC_LANG_PROGRAM([ ], [return 0;])],
Mark Wielaard 00efda
+[AC_LANG_SOURCE([int _start () { return 0; }])],
Mark Wielaard 00efda
 [
Mark Wielaard 00efda
   linker_using_t_text="no"
Mark Wielaard 00efda
   AC_SUBST([FLAG_T_TEXT], ["-Ttext-segment"])
Mark Wielaard 00efda
--- valgrind-3.8.1/configure.orig2	2013-04-17 20:37:38.431443701 +0200
Mark Wielaard 00efda
+++ valgrind-3.8.1/configure	2013-04-17 20:38:19.103686995 +0200
Mark Wielaard 00efda
@@ -7932,18 +7932,11 @@
Mark Wielaard 00efda
 $as_echo_n "checking if the linker accepts -Wl,-Ttext-segment... " >&6; }
Mark Wielaard 00efda
 
Mark Wielaard 00efda
 safe_CFLAGS=$CFLAGS
Mark Wielaard 00efda
-CFLAGS="-Wl,-Ttext-segment=$valt_load_address_pri_norml"
Mark Wielaard 00efda
+CFLAGS="-static -nodefaultlibs -nostartfiles -Wl,-Ttext-segment=$valt_load_address_pri_norml"
Mark Wielaard 00efda
 
Mark Wielaard 00efda
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Wielaard 00efda
 /* end confdefs.h.  */
Mark Wielaard 00efda
-
Mark Wielaard 00efda
-int
Mark Wielaard 00efda
-main ()
Mark Wielaard 00efda
-{
Mark Wielaard 00efda
-return 0;
Mark Wielaard 00efda
-  ;
Mark Wielaard 00efda
-  return 0;
Mark Wielaard 00efda
-}
Mark Wielaard 00efda
+int _start () { return 0; }
Mark Wielaard 00efda
 _ACEOF
Mark Wielaard 00efda
 if ac_fn_c_try_link "$LINENO"; then :
Mark Wielaard 00efda