mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Ressurect the builtin symbol type fixup.
I was a little overzealous when gutting process_type_space :P
This commit is contained in:
parent
9d7b8a4cf2
commit
acc188d62b
1 changed files with 15 additions and 0 deletions
|
@ -808,6 +808,21 @@ process_type_space (qfo_t *qfo, qfo_mspace_t *space, int pass)
|
|||
"corrupt object file?");
|
||||
reloc->offset += def->type - def->offset;
|
||||
}
|
||||
for (i = 0; i < num_builtins; i++) {
|
||||
builtin_sym_t *bi = builtin_symbols + i;
|
||||
qfo_def_t *def;
|
||||
defref_t *ref;
|
||||
|
||||
if (!bi->defref)
|
||||
continue;
|
||||
def = REF (bi->defref);
|
||||
if (def->type >= 0)
|
||||
continue;
|
||||
ref = Hash_Find (defined_type_defs, WORKSTR (-def->type));
|
||||
if (!ref)
|
||||
continue;
|
||||
def->type = REF (ref)->offset;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue