From: Bart Van Assche Date: Fri, 30 May 2008 13:21:13 +0000 (+0000) Subject: Don't complain on .got.plt sections of size zero. Apparently such X-Git-Tag: svn/VALGRIND_3_4_0~534 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8480f85e3991dc5827d8e2a62f02fc2ec8c08bee;p=thirdparty%2Fvalgrind.git Don't complain on .got.plt sections of size zero. Apparently such sections are generated by older toolchains (binutils 2.15.90.0.3 ?) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8158 --- diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c index a11439712e..d7670c99ad 100644 --- a/coregrind/m_debuginfo/readelf.c +++ b/coregrind/m_debuginfo/readelf.c @@ -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"); } }