mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
Point the near and far data spaced into the merged data space.
This lets the relocations work on the final data without having to adjust their locations.
This commit is contained in:
parent
181596f5bf
commit
3505de6868
1 changed files with 4 additions and 0 deletions
|
@ -479,6 +479,10 @@ finish_compilation (void)
|
||||||
pr.far_data->defs = 0;
|
pr.far_data->defs = 0;
|
||||||
pr.far_data->def_tail = &pr.far_data->defs;
|
pr.far_data->def_tail = &pr.far_data->defs;
|
||||||
}
|
}
|
||||||
|
// point near and far data spaces into the merged data. this allows
|
||||||
|
// relocations to work without having to adjust their location.
|
||||||
|
pr.near_data->data = pr.data->data;
|
||||||
|
pr.far_data->data = pr.data->data + far_base;
|
||||||
|
|
||||||
// check to make sure all functions prototyped have code
|
// check to make sure all functions prototyped have code
|
||||||
if (options.warnings.undefined_function) {
|
if (options.warnings.undefined_function) {
|
||||||
|
|
Loading…
Reference in a new issue