]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't worry about an unmapped, zero sized, bss segment. Bug #181594.
authorTom Hughes <tom@compton.nu>
Thu, 22 Jan 2009 16:53:25 +0000 (16:53 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 22 Jan 2009 16:53:25 +0000 (16:53 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9026

coregrind/m_debuginfo/readelf.c

index 6ba6ac86ef95212626fab94ae1578a93d0589210..12f4ab9329ad96dc35d04793a34fe5c3124e5fdb 100644 (file)
@@ -1460,7 +1460,7 @@ Bool ML_(read_elf_debug_info) ( struct _DebugInfo* di )
             }
          } else
 
-         if ((!inrw) && (!inrx) && size > 0 && !di->bss_present) {
+         if ((!inrw) && (!inrx) && size >= 0 && !di->bss_present) {
             /* File contains a .bss, but it didn't get mapped.  Ignore. */
             di->bss_present = False;
             di->bss_svma = 0;