mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 20:50:42 +00:00
fix a missing reloc ref for .this
This commit is contained in:
parent
53b257c918
commit
fabaf84745
1 changed files with 4 additions and 0 deletions
|
@ -513,6 +513,10 @@ define_def (const char *name, etype_t basic_type, const char *full_type, int v)
|
||||||
d.name = strpool_addstr (strings, name);
|
d.name = strpool_addstr (strings, name);
|
||||||
d.ofs = data->size;
|
d.ofs = data->size;
|
||||||
d.flags = QFOD_GLOBAL;
|
d.flags = QFOD_GLOBAL;
|
||||||
|
if (basic_type == ev_field) {
|
||||||
|
d.relocs = relocs.num_relocs;
|
||||||
|
d.num_relocs = 1;
|
||||||
|
}
|
||||||
defspace_adddata (data, &val, 1);
|
defspace_adddata (data, &val, 1);
|
||||||
defgroup_add_defs (&global_defs, &d, 1);
|
defgroup_add_defs (&global_defs, &d, 1);
|
||||||
process_def (global_defs.defs + global_defs.num_defs - 1);
|
process_def (global_defs.defs + global_defs.num_defs - 1);
|
||||||
|
|
Loading…
Reference in a new issue