From 986c69ccf8a65c6fb20ec4533d4a8245db2d2f7a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 22 Jan 2009 16:53:25 +0000 Subject: [PATCH] Don't worry about an unmapped, zero sized, bss segment. Bug #181594. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9026 --- coregrind/m_debuginfo/readelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c index 6ba6ac86ef..12f4ab9329 100644 --- a/coregrind/m_debuginfo/readelf.c +++ b/coregrind/m_debuginfo/readelf.c @@ -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; -- 2.47.3