mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
[qfcc] Relocate loose string relocs when linking
This helps make partially linked object files make more sense when looking at strings in data spaces.
This commit is contained in:
parent
049b8f392c
commit
718f243f69
1 changed files with 3 additions and 0 deletions
|
@ -1009,6 +1009,9 @@ process_loose_relocs (qfo_t *qfo)
|
|||
if (reloc->type == rel_def_op)
|
||||
reloc->target += work_base[qfo_code_space];
|
||||
adjust_reloc_offset (reloc);
|
||||
if (reloc->type == rel_def_string) {
|
||||
QFO_STRING (work, reloc->space, reloc->offset) = reloc->target;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue