]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't complain on .got.plt sections of size zero. Apparently such
authorBart Van Assche <bvanassche@acm.org>
Fri, 30 May 2008 13:21:13 +0000 (13:21 +0000)
committerBart Van Assche <bvanassche@acm.org>
Fri, 30 May 2008 13:21:13 +0000 (13:21 +0000)
sections are generated by older toolchains (binutils 2.15.90.0.3 ?)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8158

coregrind/m_debuginfo/readelf.c

index a11439712e365caacf2f0e2983b8b44060744f76..d7670c99ad4bb2e012815c938784c57a79f62525 100644 (file)
@@ -1475,7 +1475,7 @@ Bool ML_(read_elf_debug_info) ( struct _DebugInfo* di )
             di->gotplt_avma = di->rw_map_avma + foff - di->rw_map_foff;
             di->gotplt_size = size;
             TRACE_SYMTAB("acquiring .got.plt avma = %p\n", di->gotplt_avma);
-         } else {
+         } else if (size != 0) {
             BAD(".got.plt");
          }
       }