mirror of
https://github.com/autc04/Retro68.git
synced 2025-08-05 08:26:10 +00:00
fix segment-based relocation in gdb
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user