mirror of
https://github.com/autc04/Retro68.git
synced 2025-03-03 02:30:58 +00:00
fix segment-based relocation in gdb
This commit is contained in:
parent
9a39c08963
commit
30b727647a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user