summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorZhenhua Luo <b19537@freescale.com>2012-09-12 16:20:46 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-12 15:13:51 +0100
commitb7a81c5b5187eaa91e72d2610538161e47330f6a (patch)
tree47777335940ffba18d374161266e2248115ba5ae /meta/recipes-devtools
parentfdf87242d9de6e1524330ec72b196906b2624809 (diff)
downloadpoky-b7a81c5b5187eaa91e72d2610538161e47330f6a.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) Signed-off-by: Zhenhua Luo <b19537@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-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 0000000000..b1626f0b0f
--- /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 abda7a6c90..651ae60236 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 \
@@ -21,6 +21,9 @@ SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
21 file://configure-with-glibc-2.16.patch \ 21 file://configure-with-glibc-2.16.patch \
22 " 22 "
23 23
24SRC_URI_append_powerpc = " file://valgrind-3.7.0-fix-error-of-reading-debug-info.patch"
25SRC_URI_append_powerpc64 = "file://valgrind-3.7.0-fix-error-of-reading-debug-info.patch"
26
24SRC_URI[md5sum] = "a855fda56edf05614f099dca316d1775" 27SRC_URI[md5sum] = "a855fda56edf05614f099dca316d1775"
25SRC_URI[sha256sum] = "5d62c0330f1481fe2c593249192fa68ff454c19c34343978cc9ce91aa324cbf6" 28SRC_URI[sha256sum] = "5d62c0330f1481fe2c593249192fa68ff454c19c34343978cc9ce91aa324cbf6"
26 29