]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Do not only recognize .plt and .plt.got sections inside the mapped address range...
authorBart Van Assche <bvanassche@acm.org>
Fri, 30 Jan 2009 17:52:21 +0000 (17:52 +0000)
committerBart Van Assche <bvanassche@acm.org>
Fri, 30 Jan 2009 17:52:21 +0000 (17:52 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9090

drd/drd_main.c

index eb082a271128cd29cce4ef38b6f1a637f1ff459c..4b8cdc22c63ded652ef05d6389a9fec0260ccc1e 100644 (file)
@@ -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);