mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix branches (been broken for a while :/)
This commit is contained in:
parent
90fa657a5f
commit
8d6c491390
2 changed files with 4 additions and 1 deletions
|
@ -542,6 +542,7 @@ emit_expr (expr_t *e)
|
||||||
case ex_label:
|
case ex_label:
|
||||||
label = &e->e.label;
|
label = &e->e.label;
|
||||||
label->ofs = pr.code->size;
|
label->ofs = pr.code->size;
|
||||||
|
relocate_refs (label->refs, label->ofs);
|
||||||
break;
|
break;
|
||||||
case ex_block:
|
case ex_block:
|
||||||
for (e = e->e.block.head; e; e = e->next)
|
for (e = e->e.block.head; e; e = e->next)
|
||||||
|
|
|
@ -140,10 +140,12 @@ add_relocs (qfo_t *qfo)
|
||||||
case rel_op_a_def:
|
case rel_op_a_def:
|
||||||
case rel_op_b_def:
|
case rel_op_b_def:
|
||||||
case rel_op_c_def:
|
case rel_op_c_def:
|
||||||
|
reloc->ofs += code_base;
|
||||||
|
break;
|
||||||
case rel_op_a_op:
|
case rel_op_a_op:
|
||||||
case rel_op_b_op:
|
case rel_op_b_op:
|
||||||
case rel_op_c_op:
|
case rel_op_c_op:
|
||||||
reloc->ofs += code_base;
|
// these are relative and fixed up before the .qfo is written
|
||||||
break;
|
break;
|
||||||
case rel_def_op:
|
case rel_def_op:
|
||||||
reloc->ofs += data_base;
|
reloc->ofs += data_base;
|
||||||
|
|
Loading…
Reference in a new issue