diff options
author | Zhenhua Luo <b19537@freescale.com> | 2012-09-12 16:20:46 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-28 16:53:11 +0100 |
commit | b4de44f425207ec6d9d80bc378d911f7273d9d46 (patch) | |
tree | e902a633e0610dca2bbb9e9e3c77e39a7f676c82 /meta/recipes-devtools/valgrind/valgrind-3.7.0 | |
parent | b32c50e016cb022f4700be2b81900beaa0e79f06 (diff) | |
download | poky-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>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind-3.7.0')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind-3.7.0/valgrind-3.7.0-fix-error-of-reading-debug-info.patch | 33 |
1 files changed, 33 insertions, 0 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 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | fix 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 | |||
21 | Signed-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; " | ||