Trivial patch to remove dependency on host unsigned long type
[deliverable/binutils-gdb.git] / gdb / solib-target.c
index 570827687fdf01282906cd5c06abf2adbc03998b..0b6b2d2ae8f4bf1a8b98c14da48f4f2650be1723 100644 (file)
@@ -456,8 +456,9 @@ Could not relocate shared library \"%s\": bad offsets"), so->so_name);
        }
     }
 
-  offset = so->lm_info->offsets->offsets[gdb_bfd_section_index (sec->bfd,
-                                                               sec->the_bfd_section)];
+  offset = so->lm_info->offsets->offsets[gdb_bfd_section_index
+                                        (sec->the_bfd_section->owner,
+                                         sec->the_bfd_section)];
   sec->addr += offset;
   sec->endaddr += offset;
 }
This page took 0.034488 seconds and 4 git commands to generate.