summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenhua Luo <b19537@freescale.com>2012-09-12 08:20:46 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-28 15:53:11 (GMT)
commitb4de44f425207ec6d9d80bc378d911f7273d9d46 (patch)
treee902a633e0610dca2bbb9e9e3c77e39a7f676c82
parentb32c50e016cb022f4700be2b81900beaa0e79f06 (diff)
downloadpoky-b4de44f425207ec6d9d80bc378d911f7273d9d46.tar.gz
valgrind: fix debug info reading error when do memcheck on ppc targets
following is the error message: --2263-- WARNING: Serious error when reading debug info --2263-- When reading debug info from /lib/ld-2.13.so: --2263-- Can't make sense of .got section mapping --2263-- WARNING: Serious error when reading debug info --2263-- When reading debug info from /home/root/lzh: --2263-- Can't make sense of .data section mapping --2263-- WARNING: Serious error when reading debug info --2263-- When reading debug info from /usr/lib/valgrind/vgpreload_core-ppc32-linux.so: --2263-- Can't make sense of .data section mapping --2263-- WARNING: Serious error when reading debug info --2263-- When reading debug info from /usr/lib/valgrind/vgpreload_memcheck-ppc32-linux.so: --2263-- Can't make sense of .data section mapping --2263-- WARNING: Serious error when reading debug info --2263-- When reading debug info from /lib/libc-2.13.so: --2263-- Can't make sense of .data section mapping (From OE-Core rev: 14626cc76210ed6fe40316a311f24147ed8de8be) (From OE-Core rev: a76be502fbb9517c38cd716fa1f21a238b314162) Signed-off-by: Zhenhua Luo <b19537@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/valgrind/valgrind-3.7.0/valgrind-3.7.0-fix-error-of-reading-debug-info.patch33
-rw-r--r--meta/recipes-devtools/valgrind/valgrind_3.7.0.bb5
2 files changed, 37 insertions, 1 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/valgrind-3.7.0-fix-error-of-reading-debug-info.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/valgrind-3.7.0-fix-error-of-reading-debug-info.patch
new file mode 100644
index 0000000..b1626f0
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind-3.7.0/valgrind-3.7.0-fix-error-of-reading-debug-info.patch
@@ -0,0 +1,33 @@
1Upstream-Status: Pending
2
3fix debug info reading error when do memcheck on ppc targets
4 following is the error message:
5 --2263-- WARNING: Serious error when reading debug info
6 --2263-- When reading debug info from /lib/ld-2.13.so:
7 --2263-- Can't make sense of .got section mapping
8 --2263-- WARNING: Serious error when reading debug info
9 --2263-- When reading debug info from /home/root/lzh:
10 --2263-- Can't make sense of .data section mapping
11 --2263-- WARNING: Serious error when reading debug info
12 --2263-- When reading debug info from /usr/lib/valgrind/vgpreload_core-ppc32-linux.so:
13 --2263-- Can't make sense of .data section mapping
14 --2263-- WARNING: Serious error when reading debug info
15 --2263-- When reading debug info from /usr/lib/valgrind/vgpreload_memcheck-ppc32-linux.so:
16 --2263-- Can't make sense of .data section mapping
17 --2263-- WARNING: Serious error when reading debug info
18 --2263-- When reading debug info from /lib/libc-2.13.so:
19 --2263-- Can't make sense of .data section mapping
20
21Signed-off-by: Zhenhua Luo <b19537@freescale.com>
22
23--- a/coregrind/m_debuginfo/readelf.c 2012-09-11 21:45:36.696462313 -0500
24+++ b/coregrind/m_debuginfo/readelf.c 2012-09-11 21:45:49.913463615 -0500
25@@ -1539,7 +1539,7 @@
26 && phdr->p_offset < di->fsm.rw_map_foff + di->fsm.rw_map_size
27 && phdr->p_offset + phdr->p_filesz
28 <= di->fsm.rw_map_foff + di->fsm.rw_map_size
29- && (phdr->p_flags & (PF_R | PF_W | PF_X)) == (PF_R | PF_W)) {
30+ && (phdr->p_flags & (PF_R | PF_W | PF_X)) >= (PF_R | PF_W)) {
31 if (n_rw == N_RX_RW_AREAS) {
32 ML_(symerr)(di, True,
33 "N_RX_RW_AREAS is too low; "
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.7.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.7.0.bb
index ea797ed..242f88b 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.7.0.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.7.0.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \
9 9
10X11DEPENDS = "virtual/libx11" 10X11DEPENDS = "virtual/libx11"
11DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}" 11DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
12PR = "r5" 12PR = "r6"
13 13
14SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \ 14SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
15 file://fix_issue_caused_by_ccache.patch \ 15 file://fix_issue_caused_by_ccache.patch \
@@ -19,6 +19,9 @@ SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
19 file://configure-fix.patch \ 19 file://configure-fix.patch \
20 file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch" 20 file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch"
21 21
22SRC_URI_append_powerpc = " file://valgrind-3.7.0-fix-error-of-reading-debug-info.patch"
23SRC_URI_append_powerpc64 = "file://valgrind-3.7.0-fix-error-of-reading-debug-info.patch"
24
22SRC_URI[md5sum] = "a855fda56edf05614f099dca316d1775" 25SRC_URI[md5sum] = "a855fda56edf05614f099dca316d1775"
23SRC_URI[sha256sum] = "5d62c0330f1481fe2c593249192fa68ff454c19c34343978cc9ce91aa324cbf6" 26SRC_URI[sha256sum] = "5d62c0330f1481fe2c593249192fa68ff454c19c34343978cc9ce91aa324cbf6"
24 27