From 42aa6cd1cd7845478cbe6ae2a454a7edc0bde587 Mon Sep 17 00:00:00 2001 From: Aaron Merey Date: Mon, 18 Sep 2023 17:42:42 -0400 Subject: [PATCH] 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. --- coregrind/m_debuginfo/readelf.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.43.5