fix segment-based relocation in gdb

This commit is contained in:
Wolfgang Thaller 2021-05-24 15:54:47 +02:00
parent 9a39c08963
commit 30b727647a
1 changed files with 1 additions and 1 deletions

View File

@ -3709,7 +3709,7 @@ symfile_map_offsets_to_segments (bfd *abfd,
if (which > num_segment_bases)
which = num_segment_bases;
offsets[i] = segment_bases[which - 1] - data->segments[which - 1].base;
offsets[i] = segment_bases[which - 1] - data->segments[which - 1].base + sect->vma;
}
return 1;