diff options
Diffstat (limited to 'gdb/solib-target.c')
-rw-r--r-- | gdb/solib-target.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c index d897bc0..0ad29ba 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -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; } |