* coffread.c (cs_to_section): Use gdb_bfd_section_index.
[deliverable/binutils-gdb.git] / gdb / solib-target.c
index d897bc0f278a1f5547f19320c8c9388e4d5c230a..0ad29ba32355647bdda8abe0c25fa7e5a0a86735 100644 (file)
@@ -456,7 +456,8 @@ Could not relocate shared library \"%s\": bad offsets"), so->so_name);
        }
     }
 
-  offset = so->lm_info->offsets->offsets[sec->the_bfd_section->index];
+  offset = so->lm_info->offsets->offsets[gdb_bfd_section_index (sec->bfd,
+                                                               sec->the_bfd_section)];
   sec->addr += offset;
   sec->endaddr += offset;
 }
This page took 0.029971 seconds and 4 git commands to generate.