]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Skip updating rodata avma and tracing when there are non-contiguous rodata sections.
authorPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 22 Dec 2023 19:16:04 +0000 (20:16 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 22 Dec 2023 19:16:04 +0000 (20:16 +0100)
coregrind/m_debuginfo/readelf.c

index db523230b76188a9760d51e2502f600ad924a6dd..16b5340a53ed365fd6efc2524f55ea734c4ecab9 100644 (file)
@@ -2495,6 +2495,7 @@ Bool ML_(read_elf_object) ( struct _DebugInfo* di )
                             name,
                             di->rodata_avma,
                             di->rodata_avma + di->rodata_size - 1);
+               goto out_rodata;
             }
          }
          if (inrx) {
@@ -2518,6 +2519,7 @@ Bool ML_(read_elf_object) ( struct _DebugInfo* di )
          TRACE_SYMTAB("acquiring .rodata bias = %#lx\n",
                       (UWord)di->rodata_bias);
       }
+  out_rodata:
 
       if (0 == VG_(strcmp)(name, ".dynbss")) {
          if (inrw1 && !di->bss_present) {