mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 08:41:11 +00:00
Bring back the offset alias support.
Accidently nuked it when fixing .return etc.
This commit is contained in:
parent
e7e8220246
commit
7314b944d5
1 changed files with 6 additions and 1 deletions
|
@ -138,15 +138,20 @@ add_statement_def_ref (def_t *def, dstatement_t *st, int field)
|
||||||
{
|
{
|
||||||
if (def) {
|
if (def) {
|
||||||
int st_ofs = st - pr.code->code;
|
int st_ofs = st - pr.code->code;
|
||||||
|
int offset_reloc = 0;
|
||||||
|
|
||||||
while (def->alias) {
|
while (def->alias) {
|
||||||
//FIXME it seems there is a bug somewhere creating chains
|
//FIXME it seems there is a bug somewhere creating chains
|
||||||
//of aliases
|
//of aliases
|
||||||
def_t *a = def;
|
def_t *a = def;
|
||||||
|
offset_reloc |= def->offset_reloc;
|
||||||
def = def->alias;
|
def = def->alias;
|
||||||
free_def (a);
|
free_def (a);
|
||||||
}
|
}
|
||||||
reloc_op_def (def, st_ofs, field);
|
if (offset_reloc)
|
||||||
|
reloc_op_def_ofs (def, st_ofs, field);
|
||||||
|
else
|
||||||
|
reloc_op_def (def, st_ofs, field);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue