From: Bart Van Assche Date: Fri, 30 Jan 2009 17:52:21 +0000 (+0000) Subject: Do not only recognize .plt and .plt.got sections inside the mapped address range... X-Git-Tag: svn/VALGRIND_3_5_0~1027 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f93d44456f3738203da7eb9ecdcb8a9b670ee6ae;p=thirdparty%2Fvalgrind.git Do not only recognize .plt and .plt.got sections inside the mapped address range, but also outside the mapped address range (necessary for ppc). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9090 --- diff --git a/drd/drd_main.c b/drd/drd_main.c index eb082a2711..4b8cdc22c6 100644 --- a/drd/drd_main.c +++ b/drd/drd_main.c @@ -524,7 +524,8 @@ static void suppress_relocation_conflicts(const Addr a, const SizeT len) avma = VG_(seginfo_get_plt_avma)(di); size = VG_(seginfo_get_plt_size)(di); - if (size > 0 && a <= avma && avma + size <= a + len) + tl_assert((avma && size) || (avma == 0 && size == 0)); + if (size > 0) { #if 0 VG_(printf)("Suppressing .plt @ 0x%lx size %ld\n", avma, size); @@ -535,7 +536,8 @@ static void suppress_relocation_conflicts(const Addr a, const SizeT len) avma = VG_(seginfo_get_gotplt_avma)(di); size = VG_(seginfo_get_gotplt_size)(di); - if (size > 0 && a <= avma && avma + size <= a + len) + tl_assert((avma && size) || (avma == 0 && size == 0)); + if (size > 0) { #if 0 VG_(printf)("Suppressing .got.plt @ 0x%lx size %ld\n", avma, size);