This commit is contained in:
parent
7e02f994a6
commit
a824941b94
37
glibc.diff
37
glibc.diff
@ -1,37 +0,0 @@
|
||||
add support for glibc 2.15 and glibc 2.16
|
||||
|
||||
------------------------------------------------------------------------
|
||||
Index: configure.in
|
||||
===================================================================
|
||||
--- configure.in.orig
|
||||
+++ configure.in
|
||||
@@ -775,6 +775,20 @@ case "${GLIBC_VERSION}" in
|
||||
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||
;;
|
||||
+ 2.15)
|
||||
+ AC_MSG_RESULT(2.15 family)
|
||||
+ AC_DEFINE([GLIBC_2_15], 1, [Define to 1 if you're using glibc 2.15.x])
|
||||
+ DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
|
||||
+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||
+ DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||
+ ;;
|
||||
+ 2.16)
|
||||
+ AC_MSG_RESULT(2.16 family)
|
||||
+ AC_DEFINE([GLIBC_2_16], 1, [Define to 1 if you're using glibc 2.16.x])
|
||||
+ DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
|
||||
+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||
+ DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||
+ ;;
|
||||
darwin)
|
||||
AC_MSG_RESULT(Darwin)
|
||||
AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin])
|
||||
@@ -788,7 +802,7 @@ case "${GLIBC_VERSION}" in
|
||||
|
||||
*)
|
||||
AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
|
||||
- AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.14])
|
||||
+ AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.16])
|
||||
AC_MSG_ERROR([or Darwin libc])
|
||||
;;
|
||||
esac
|
@ -1,28 +0,0 @@
|
||||
GCC 4.8 emits TZCNT (== REP; BSF), expecting that older CPUs behave
|
||||
like BSF and on newer CPUs as TZCNT.
|
||||
|
||||
This patch makes the intrstructions known to valgrind.
|
||||
Cf. https://bugs.kde.org/show_bug.cgi?id=295808
|
||||
|
||||
--- VEX/priv/guest_amd64_toIR.c.orig 2011-10-26 23:24:49.000000000 +0200
|
||||
+++ VEX/priv/guest_amd64_toIR.c 2012-08-17 11:38:20.000000000 +0200
|
||||
@@ -17946,11 +17946,17 @@ DisResult disInstr_AMD64_WRK (
|
||||
/* =-=-=-=-=-=-=-=-=- BSF/BSR -=-=-=-=-=-=-=-=-=-= */
|
||||
|
||||
case 0xBC: /* BSF Gv,Ev */
|
||||
- if (haveF2orF3(pfx)) goto decode_failure;
|
||||
+ if (haveF2(pfx)) goto decode_failure;
|
||||
+ /* Treat TZCNT (= F3 0F BC = REP; BSF) as BSF
|
||||
+ as required for old cpus - and for new ones as
|
||||
+ valgrind doesn't handle TZCNT yet. */
|
||||
delta = dis_bs_E_G ( vbi, pfx, sz, delta, True );
|
||||
break;
|
||||
case 0xBD: /* BSR Gv,Ev */
|
||||
- if (haveF2orF3(pfx)) goto decode_failure;
|
||||
+ if (haveF2(pfx)) goto decode_failure;
|
||||
+ /* Treat LZCNT (= F3 0F BD = REP; BSR) as BSR
|
||||
+ as required for old cpus - and for new ones as
|
||||
+ valgrind doesn't handle LZCNT yet. */
|
||||
delta = dis_bs_E_G ( vbi, pfx, sz, delta, False );
|
||||
break;
|
||||
|
@ -1,26 +0,0 @@
|
||||
diff -Nur valgrind-3.7.0.orig/coregrind/Makefile.am valgrind-3.7.0/coregrind/Makefile.am
|
||||
--- valgrind-3.7.0.orig/coregrind/Makefile.am 2011-10-27 12:55:06.000000000 +0200
|
||||
+++ valgrind-3.7.0/coregrind/Makefile.am 2012-01-06 17:23:48.717115986 +0100
|
||||
@@ -495,7 +495,8 @@
|
||||
m_gdbserver/powerpc-altivec64l.xml
|
||||
|
||||
# so as to make sure these get copied into the install tree
|
||||
-pkglib_DATA = $(GDBSERVER_XML_FILES)
|
||||
+vgdatadir = $(pkglibdir)
|
||||
+vgdata_DATA = $(GDBSERVER_XML_FILES)
|
||||
|
||||
# so as to make sure these get copied into the tarball
|
||||
EXTRA_DIST += $(GDBSERVER_XML_FILES)
|
||||
diff -Nur valgrind-3.7.0.orig/Makefile.am valgrind-3.7.0/Makefile.am
|
||||
--- valgrind-3.7.0.orig/Makefile.am 2011-10-26 23:24:45.000000000 +0200
|
||||
+++ valgrind-3.7.0/Makefile.am 2012-01-06 17:23:17.445114847 +0100
|
||||
@@ -61,7 +61,8 @@
|
||||
# default.supp, as it is built from the base .supp files at compile-time.
|
||||
dist_noinst_DATA = $(SUPP_FILES)
|
||||
|
||||
-pkglib_DATA = default.supp
|
||||
+vgdatadir = $(pkglibdir)
|
||||
+vgdata_DATA = default.supp
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = valgrind.pc
|
Loading…
Reference in New Issue
Block a user