* [Buildroot] [PATCH 1/2] valgrind: fix build on Linux kernel 3.x
@ 2011-09-26 11:47 Baruch Siach
2011-09-26 11:47 ` [Buildroot] [PATCH 2/2] valgrind: workaround for segmentation fault on PowerPC Baruch Siach
2011-09-26 20:25 ` [Buildroot] [PATCH 1/2] valgrind: fix build on Linux kernel 3.x Peter Korsgaard
0 siblings, 2 replies; 4+ messages in thread
From: Baruch Siach @ 2011-09-26 11:47 UTC (permalink / raw)
To: buildroot
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
.../valgrind-3.6.1-configure-support-linux-3.patch | 30 ++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 package/valgrind/valgrind-3.6.1-configure-support-linux-3.patch
diff --git a/package/valgrind/valgrind-3.6.1-configure-support-linux-3.patch b/package/valgrind/valgrind-3.6.1-configure-support-linux-3.patch
new file mode 100644
index 0000000..a3b2482
--- /dev/null
+++ b/package/valgrind/valgrind-3.6.1-configure-support-linux-3.patch
@@ -0,0 +1,30 @@
+Add support for kernel 3.x. From upstream r11796 (via Debian).
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+
+Index: valgrind-3.6.1/configure.in
+===================================================================
+--- valgrind-3.6.1.orig/configure.in 2011-02-15 18:31:17.000000000 +0100
++++ valgrind-3.6.1/configure.in 2011-07-08 22:36:36.051563848 +0200
+@@ -220,7 +220,7 @@
+ kernel=`uname -r`
+
+ case "${kernel}" in
+- 2.6.*)
++ 2.6.*|3.*)
+ AC_MSG_RESULT([2.6 family (${kernel})])
+ AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
+ ;;
+Index: valgrind-3.6.1/configure
+===================================================================
+--- valgrind-3.6.1.orig/configure 2011-07-08 22:37:18.911240743 +0200
++++ valgrind-3.6.1/configure 2011-07-08 22:37:44.847045178 +0200
+@@ -5348,7 +5348,7 @@
+ kernel=`uname -r`
+
+ case "${kernel}" in
+- 2.6.*)
++ 2.6.*|3.*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
+ $as_echo "2.6 family (${kernel})" >&6; }
+
--
1.7.6.3
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH 2/2] valgrind: workaround for segmentation fault on PowerPC
2011-09-26 11:47 [Buildroot] [PATCH 1/2] valgrind: fix build on Linux kernel 3.x Baruch Siach
@ 2011-09-26 11:47 ` Baruch Siach
2011-09-26 20:25 ` Peter Korsgaard
2011-09-26 20:25 ` [Buildroot] [PATCH 1/2] valgrind: fix build on Linux kernel 3.x Peter Korsgaard
1 sibling, 1 reply; 4+ messages in thread
From: Baruch Siach @ 2011-09-26 11:47 UTC (permalink / raw)
To: buildroot
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
.../valgrind-3.6.1-workaround-SIGSEGV-on-PPC.patch | 28 ++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
create mode 100644 package/valgrind/valgrind-3.6.1-workaround-SIGSEGV-on-PPC.patch
diff --git a/package/valgrind/valgrind-3.6.1-workaround-SIGSEGV-on-PPC.patch b/package/valgrind/valgrind-3.6.1-workaround-SIGSEGV-on-PPC.patch
new file mode 100644
index 0000000..a788511
--- /dev/null
+++ b/package/valgrind/valgrind-3.6.1-workaround-SIGSEGV-on-PPC.patch
@@ -0,0 +1,28 @@
+From db894abcaa12555f60880a15840010f81d354806 Mon Sep 17 00:00:00 2001
+From: Pierre Habouzit <madcoder@debian.org>
+Date: Tue, 10 May 2011 23:11:45 +0200
+Subject: [PATCH] workaround SIGSEGV on PPC.
+
+Signed-off-by: Pierre Habouzit <madcoder@debian.org>
+---
+ coregrind/m_machine.c | 4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/coregrind/m_machine.c b/coregrind/m_machine.c
+index 8dc3e17..7921502 100644
+--- a/coregrind/m_machine.c
++++ b/coregrind/m_machine.c
+@@ -28,6 +28,10 @@
+ The GNU General Public License is contained in the file COPYING.
+ */
+
++#ifdef __powerpc__
++# pragma GCC optimize ("-O0")
++#endif
++
+ #include "pub_core_basics.h"
+ #include "pub_core_vki.h"
+ #include "pub_core_threadstate.h"
+--
+1.7.5.1.290.g2095dc
+
--
1.7.6.3
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH 1/2] valgrind: fix build on Linux kernel 3.x
2011-09-26 11:47 [Buildroot] [PATCH 1/2] valgrind: fix build on Linux kernel 3.x Baruch Siach
2011-09-26 11:47 ` [Buildroot] [PATCH 2/2] valgrind: workaround for segmentation fault on PowerPC Baruch Siach
@ 2011-09-26 20:25 ` Peter Korsgaard
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-09-26 20:25 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
Baruch> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-09-26 20:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26 11:47 [Buildroot] [PATCH 1/2] valgrind: fix build on Linux kernel 3.x Baruch Siach
2011-09-26 11:47 ` [Buildroot] [PATCH 2/2] valgrind: workaround for segmentation fault on PowerPC Baruch Siach
2011-09-26 20:25 ` Peter Korsgaard
2011-09-26 20:25 ` [Buildroot] [PATCH 1/2] valgrind: fix build on Linux kernel 3.x Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox