diff options
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind-3.7.0')
8 files changed, 0 insertions, 365 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/Added-support-for-PPC-instructions-mfatbu-mfatbl.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/Added-support-for-PPC-instructions-mfatbu-mfatbl.patch deleted file mode 100644 index 07774f38a9..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind-3.7.0/Added-support-for-PPC-instructions-mfatbu-mfatbl.patch +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | From 0bf4b0ac18d1ea41b32ad781d214b295ca1998f3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Aneesh Bansal <aneesh.bansal@freescale.com> | ||
3 | Date: Mon, 21 Nov 2011 17:31:39 +0530 | ||
4 | Subject: [PATCH] Added support for PPC instructions mfatbu, mfatbl. | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com> | ||
9 | --- | ||
10 | Currently Valgrind 3.7.0 does not have support for PPC instructions mfatbu and mfatbl. When we run a USDPAA application with VALGRIND, the following error is given by valgrind : | ||
11 | dis_proc_ctl(ppc)(mfspr,SPR)(0x20F) | ||
12 | disInstr(ppc): unhandled instruction: 0x7C0F82A6 | ||
13 | |||
14 | |||
15 | VEX/priv/guest_ppc_defs.h | 2 ++ | ||
16 | VEX/priv/guest_ppc_helpers.c | 18 ++++++++++++++++++ | ||
17 | VEX/priv/guest_ppc_toIR.c | 22 ++++++++++++++++++++++ | ||
18 | 3 files changed, 42 insertions(+), 0 deletions(-) | ||
19 | |||
20 | diff --git a/VEX/priv/guest_ppc_defs.h b/VEX/priv/guest_ppc_defs.h | ||
21 | index dd3c62e..11a34aa 100644 | ||
22 | --- a/VEX/priv/guest_ppc_defs.h | ||
23 | +++ b/VEX/priv/guest_ppc_defs.h | ||
24 | @@ -146,6 +146,8 @@ extern UInt ppc32g_dirtyhelper_MFSPR_268_269 ( UInt ); | ||
25 | |||
26 | extern UInt ppc32g_dirtyhelper_MFSPR_287 ( void ); | ||
27 | |||
28 | +extern UInt ppc32g_dirtyhelper_MFSPR_526_527 ( UInt ); | ||
29 | + | ||
30 | extern void ppc32g_dirtyhelper_LVS ( VexGuestPPC32State* gst, | ||
31 | UInt vD_idx, UInt sh, | ||
32 | UInt shift_right ); | ||
33 | diff --git a/VEX/priv/guest_ppc_helpers.c b/VEX/priv/guest_ppc_helpers.c | ||
34 | index 11aa428..b49ea3f 100644 | ||
35 | --- a/VEX/priv/guest_ppc_helpers.c | ||
36 | +++ b/VEX/priv/guest_ppc_helpers.c | ||
37 | @@ -119,6 +119,24 @@ UInt ppc32g_dirtyhelper_MFSPR_287 ( void ) | ||
38 | # endif | ||
39 | } | ||
40 | |||
41 | +/* CALLED FROM GENERATED CODE */ | ||
42 | +/* DIRTY HELPER (non-referentially transparent) */ | ||
43 | +UInt ppc32g_dirtyhelper_MFSPR_526_527 ( UInt r527 ) | ||
44 | +{ | ||
45 | +# if defined(__powerpc__) || defined(_AIX) | ||
46 | + UInt spr; | ||
47 | + if (r527) { | ||
48 | + __asm__ __volatile__("mfspr %0,527" : "=b"(spr)); | ||
49 | + } else { | ||
50 | + __asm__ __volatile__("mfspr %0,526" : "=b"(spr)); | ||
51 | + } | ||
52 | + return spr; | ||
53 | +# else | ||
54 | + return 0; | ||
55 | +# endif | ||
56 | +} | ||
57 | + | ||
58 | + | ||
59 | |||
60 | /* CALLED FROM GENERATED CODE */ | ||
61 | /* DIRTY HELPER (reads guest state, writes guest mem) */ | ||
62 | diff --git a/VEX/priv/guest_ppc_toIR.c b/VEX/priv/guest_ppc_toIR.c | ||
63 | index f8d220d..37c8974 100644 | ||
64 | --- a/VEX/priv/guest_ppc_toIR.c | ||
65 | +++ b/VEX/priv/guest_ppc_toIR.c | ||
66 | @@ -5657,6 +5657,28 @@ static Bool dis_proc_ctl ( VexAbiInfo* vbi, UInt theInstr ) | ||
67 | break; | ||
68 | } | ||
69 | |||
70 | + | ||
71 | + case 526 /* 0x20E */: | ||
72 | + case 527 /* 0x20F */: { | ||
73 | + UInt arg = SPR==526 ? 0 : 1; | ||
74 | + IRTemp val = newTemp(Ity_I32); | ||
75 | + IRExpr** args = mkIRExprVec_1( mkU32(arg) ); | ||
76 | + IRDirty* d = unsafeIRDirty_1_N( | ||
77 | + val, | ||
78 | + 0/*regparms*/, | ||
79 | + "ppc32g_dirtyhelper_MFSPR_526_527", | ||
80 | + fnptr_to_fnentry | ||
81 | + (vbi, &ppc32g_dirtyhelper_MFSPR_526_527), | ||
82 | + args | ||
83 | + ); | ||
84 | + /* execute the dirty call, dumping the result in val. */ | ||
85 | + stmt( IRStmt_Dirty(d) ); | ||
86 | + putIReg( rD_addr, | ||
87 | + mkWidenFrom32(ty, mkexpr(val), False/*unsigned*/) ); | ||
88 | + DIP("mfspr r%u,%u", rD_addr, (UInt)SPR); | ||
89 | + break; | ||
90 | + } | ||
91 | + | ||
92 | default: | ||
93 | vex_printf("dis_proc_ctl(ppc)(mfspr,SPR)(0x%x)\n", SPR); | ||
94 | return False; | ||
95 | -- | ||
96 | 1.7.0.4 | ||
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-fix.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-fix.patch deleted file mode 100644 index 1f4bd7ef40..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-fix.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | To recognize gcc version from poky in configure.in | ||
2 | Added GLIBC 2.15 stanza to supported GLIBCs | ||
3 | |||
4 | Upstream-Status: Inappropriate [configuration] | ||
5 | |||
6 | Signed-off-by: Shane Wang <shane.wang@intel.com> | ||
7 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
8 | |||
9 | Index: valgrind-3.7.0/configure.in | ||
10 | =================================================================== | ||
11 | --- valgrind-3.7.0.orig/configure.in | ||
12 | +++ valgrind-3.7.0/configure.in | ||
13 | @@ -104,11 +104,13 @@ AC_MSG_CHECKING([for a supported version | ||
14 | # | ||
15 | # i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) | ||
16 | # i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) | ||
17 | +# ARCH-VENDOR-OS-gcc (GCC) VERSION Copyright | ||
18 | # | ||
19 | [gcc_version=`${CC} --version \ | ||
20 | | head -n 1 \ | ||
21 | | $SED 's/i686-apple-darwin10//' \ | ||
22 | | $SED 's/i686-apple-darwin11//' \ | ||
23 | + | $SED 's/.*GCC[^0-9]*//' \ | ||
24 | | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`] | ||
25 | |||
26 | is_clang="notclang" | ||
27 | @@ -779,6 +781,13 @@ case "${GLIBC_VERSION}" in | ||
28 | DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" | ||
29 | DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" | ||
30 | ;; | ||
31 | + 2.15) | ||
32 | + AC_MSG_RESULT(2.15 family) | ||
33 | + AC_DEFINE([GLIBC_2_15], 1, [Define to 1 if you're using glibc 2.15.x]) | ||
34 | + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}" | ||
35 | + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" | ||
36 | + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" | ||
37 | + ;; | ||
38 | darwin) | ||
39 | AC_MSG_RESULT(Darwin) | ||
40 | AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin]) | ||
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-with-newer-glibc.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-with-newer-glibc.patch deleted file mode 100644 index b369de8901..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-with-newer-glibc.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | Add case for glibc 2.16 and correct error message to denote support until 2.16 | ||
2 | |||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
4 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Index: valgrind-3.7.0/configure.in | ||
8 | =================================================================== | ||
9 | --- valgrind-3.7.0.orig/configure.in | ||
10 | +++ valgrind-3.7.0/configure.in | ||
11 | @@ -788,6 +788,20 @@ case "${GLIBC_VERSION}" in | ||
12 | DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" | ||
13 | DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" | ||
14 | ;; | ||
15 | + 2.16) | ||
16 | + AC_MSG_RESULT(2.16 family) | ||
17 | + AC_DEFINE([GLIBC_2_16], 1, [Define to 1 if you're using glibc 2.16.x]) | ||
18 | + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}" | ||
19 | + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" | ||
20 | + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" | ||
21 | + ;; | ||
22 | + 2.17) | ||
23 | + AC_MSG_RESULT(2.17 family) | ||
24 | + AC_DEFINE([GLIBC_2_17], 1, [Define to 1 if you're using glibc 2.17.x]) | ||
25 | + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}" | ||
26 | + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" | ||
27 | + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" | ||
28 | + ;; | ||
29 | darwin) | ||
30 | AC_MSG_RESULT(Darwin) | ||
31 | AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin]) | ||
32 | @@ -801,7 +815,7 @@ case "${GLIBC_VERSION}" in | ||
33 | |||
34 | *) | ||
35 | AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}]) | ||
36 | - AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.14]) | ||
37 | + AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.17]) | ||
38 | AC_MSG_ERROR([or Darwin libc]) | ||
39 | ;; | ||
40 | esac | ||
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_for_automake_1.11.2.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_for_automake_1.11.2.patch deleted file mode 100644 index 866facfeb2..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_for_automake_1.11.2.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | automake version 1.11.2 has made use of dir variables more strict. | ||
4 | the use of pkglibdir with DATA var results in automake errors. | ||
5 | |||
6 | This commits uses pkgdatadir var instead of pkglibdir to avoid | ||
7 | the strict check errors. | ||
8 | |||
9 | RP 2012/1/4 | ||
10 | |||
11 | Index: valgrind-3.7.0/Makefile.am | ||
12 | =================================================================== | ||
13 | --- valgrind-3.7.0.orig/Makefile.am 2012-01-04 15:55:07.034044860 +0000 | ||
14 | +++ valgrind-3.7.0/Makefile.am 2012-01-04 15:55:55.034035120 +0000 | ||
15 | @@ -61,7 +61,7 @@ | ||
16 | # default.supp, as it is built from the base .supp files at compile-time. | ||
17 | dist_noinst_DATA = $(SUPP_FILES) | ||
18 | |||
19 | -pkglib_DATA = default.supp | ||
20 | +pkgdata_DATA = default.supp | ||
21 | |||
22 | pkgconfigdir = $(libdir)/pkgconfig | ||
23 | pkgconfig_DATA = valgrind.pc | ||
24 | Index: valgrind-3.7.0/coregrind/Makefile.am | ||
25 | =================================================================== | ||
26 | --- valgrind-3.7.0.orig/coregrind/Makefile.am 2012-01-04 15:55:02.090043851 +0000 | ||
27 | +++ valgrind-3.7.0/coregrind/Makefile.am 2012-01-04 15:55:30.270044097 +0000 | ||
28 | @@ -495,7 +495,7 @@ | ||
29 | m_gdbserver/powerpc-altivec64l.xml | ||
30 | |||
31 | # so as to make sure these get copied into the install tree | ||
32 | -pkglib_DATA = $(GDBSERVER_XML_FILES) | ||
33 | +pkgdata_DATA = $(GDBSERVER_XML_FILES) | ||
34 | |||
35 | # so as to make sure these get copied into the tarball | ||
36 | EXTRA_DIST += $(GDBSERVER_XML_FILES) | ||
37 | @@ -506,7 +506,7 @@ | ||
38 | |||
39 | all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS | ||
40 | mkdir -p $(inplacedir); \ | ||
41 | - for f in $(pkglib_DATA); do \ | ||
42 | + for f in $(pkgdata_DATA); do \ | ||
43 | rm -f $(inplacedir)/$$f; \ | ||
44 | ln -f -s ../$(subdir)/$$f $(inplacedir); \ | ||
45 | done | ||
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch deleted file mode 100644 index 4658567b21..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | The script does not expect use of ccache, hence fix it to recognise it. | ||
2 | |||
3 | 2010/08/17 | ||
4 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Index: valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
9 | =================================================================== | ||
10 | --- valgrind-3.5.0.orig/coregrind/link_tool_exe_linux.in | ||
11 | +++ valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
12 | @@ -62,6 +62,11 @@ die "Bogus alt-load address" | ||
13 | |||
14 | # The cc invokation to do the final link | ||
15 | my $cc = $ARGV[1]; | ||
16 | +my $next = 2; | ||
17 | +if ("$cc" eq "ccache") { | ||
18 | + $cc = "$cc $ARGV[2]"; | ||
19 | + $next = 3; | ||
20 | +} | ||
21 | |||
22 | # and the 'restargs' are argv[2 ..] | ||
23 | |||
24 | @@ -71,7 +76,7 @@ my $cc = $ARGV[1]; | ||
25 | my $cmd="$cc -static -Wl,-Ttext=$ala"; | ||
26 | |||
27 | # Add the rest of the parameters | ||
28 | -foreach my $n (2 .. $#ARGV) { | ||
29 | +foreach my $n ($next .. $#ARGV) { | ||
30 | $cmd = "$cmd $ARGV[$n]"; | ||
31 | } | ||
32 | |||
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_unsupporting_kernel_3.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_unsupporting_kernel_3.patch deleted file mode 100644 index 346ffebb3d..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_unsupporting_kernel_3.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | valgrind: Add 3.x statements to "case" for supporting the kernel 3.x | ||
2 | |||
3 | Signed-off-by: Lin Tong <tong.lin@intel.com> | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | diff --git a/configure.in b/configure.in | ||
8 | index 3878619..1cb7dc7 100644 | ||
9 | --- a/configure.in | ||
10 | +++ b/configure.in | ||
11 | @@ -229,10 +229,14 @@ case "${host_os}" in | ||
12 | AC_MSG_RESULT([2.4 family (${kernel})]) | ||
13 | AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x]) | ||
14 | ;; | ||
15 | + 3.*) | ||
16 | + AC_MSG_RESULT([3 family (${kernel})]) | ||
17 | + AC_DEFINE([KERNEL_3], 1, [Define to 1 if you're using Linux 3.x]) | ||
18 | + ;; | ||
19 | |||
20 | *) | ||
21 | AC_MSG_RESULT([unsupported (${kernel})]) | ||
22 | - AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6]) | ||
23 | + AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6, 3.x]) | ||
24 | ;; | ||
25 | esac | ||
26 | |||
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fixed-perl-path.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fixed-perl-path.patch deleted file mode 100644 index b054d05f7f..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fixed-perl-path.patch +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | this is a temporary patch to workaround cross compilation. | ||
2 | otherwise @PERL@ will be replaced to perl-native binary, | ||
3 | this creates unusable scripts and fails FILERDEPENDS mechanism | ||
4 | (esp. rpm) | ||
5 | |||
6 | a better fix would need: | ||
7 | 1. configure.ac should differentiate PERL and HOSTPERL | ||
8 | 2. optionally remove ${STAGING_DIR} in #! line before do_install | ||
9 | |||
10 | 8/31/2010 - created by Qing He <qing.he@intel.com> | ||
11 | |||
12 | Upstream-Status: Inappropriate [configuration] | ||
13 | |||
14 | diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in | ||
15 | index 9dc9565..cc4ef05 100644 | ||
16 | --- a/cachegrind/cg_annotate.in | ||
17 | +++ b/cachegrind/cg_annotate.in | ||
18 | @@ -1,4 +1,4 @@ | ||
19 | -#! @PERL@ | ||
20 | +#! /usr/bin/perl | ||
21 | |||
22 | ##--------------------------------------------------------------------## | ||
23 | ##--- Cachegrind's annotator. cg_annotate.in ---## | ||
24 | diff --git a/cachegrind/cg_diff.in b/cachegrind/cg_diff.in | ||
25 | index 951066e..84c2dde 100644 | ||
26 | --- a/cachegrind/cg_diff.in | ||
27 | +++ b/cachegrind/cg_diff.in | ||
28 | @@ -1,4 +1,4 @@ | ||
29 | -#! @PERL@ | ||
30 | +#! /usr/bin/perl | ||
31 | |||
32 | ##--------------------------------------------------------------------## | ||
33 | ##--- Cachegrind's differencer. cg_diff.in ---## | ||
34 | diff --git a/massif/ms_print.in b/massif/ms_print.in | ||
35 | index e6ffdbf..fb45906 100755 | ||
36 | --- a/massif/ms_print.in | ||
37 | +++ b/massif/ms_print.in | ||
38 | @@ -1,4 +1,4 @@ | ||
39 | -#! @PERL@ | ||
40 | +#! /usr/bin/perl | ||
41 | |||
42 | ##--------------------------------------------------------------------## | ||
43 | ##--- Massif's results printer ms_print.in ---## | ||
44 | diff --git a/perf/vg_perf.in b/perf/vg_perf.in | ||
45 | index 2188a31..83ad024 100644 | ||
46 | --- a/perf/vg_perf.in | ||
47 | +++ b/perf/vg_perf.in | ||
48 | @@ -1,4 +1,4 @@ | ||
49 | -#! @PERL@ | ||
50 | +#! /usr/bin/perl | ||
51 | ##--------------------------------------------------------------------## | ||
52 | ##--- Valgrind performance testing script vg_perf ---## | ||
53 | ##--------------------------------------------------------------------## | ||
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 deleted file mode 100644 index b1626f0b0f..0000000000 --- a/meta/recipes-devtools/valgrind/valgrind-3.7.0/valgrind-3.7.0-fix-error-of-reading-debug-info.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
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; " | ||