aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-frv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-frv.c')
-rw-r--r--gdb/solib-frv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c
index 57e418f..52588bc 100644
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -812,7 +812,7 @@ frv_relocate_main_executable (void)
int osect_idx;
int seg;
- osect_idx = osect->the_bfd_section->index;
+ osect_idx = osect - symfile_objfile->sections;
/* Current address of section. */
addr = obj_section_addr (osect);