From: Aaron Merey Date: Mon, 18 Sep 2023 21:42:42 +0000 (-0400) Subject: Try to find section .opd in read_elf_object X-Git-Tag: VALGRIND_3_22_0~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42aa6cd1cd7845478cbe6ae2a454a7edc0bde587;p=thirdparty%2Fvalgrind.git Try to find section .opd in read_elf_object read_elf_debug skips checking for .opd ELF section, causing assert failures on PPC BE. This patch adds the missing check for .opd. --- diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c index 13efc46b84..56a9ce6b23 100644 --- a/coregrind/m_debuginfo/readelf.c +++ b/coregrind/m_debuginfo/readelf.c @@ -2883,6 +2883,7 @@ Bool ML_(read_elf_object) ( struct _DebugInfo* di ) # if defined(VGO_solaris) FIND_MIMG( ".SUNW_ldynsym", ldynsym_escn) # endif + FIND_MIMG( ".opd", opd_escn) FINDX_MIMG( ".eh_frame", ehframe_escn[ehframe_mix], do { ehframe_mix++; vg_assert(ehframe_mix <= N_EHFRAME_SECTS);