]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Try to find section .opd in read_elf_object
authorAaron Merey <amerey@redhat.com>
Mon, 18 Sep 2023 21:42:42 +0000 (17:42 -0400)
committerAaron Merey <amerey@redhat.com>
Thu, 21 Sep 2023 21:45:30 +0000 (17:45 -0400)
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

index 13efc46b842b472b4e9444b98bc9e8d8ce4a3ea3..56a9ce6b23db59bbf9e00dd4aae323806b950005 100644 (file)
@@ -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);