Implement some missed relocs.

This commit is contained in:
Bill Currie 2011-03-30 08:13:13 +09:00
parent 2bddcefafe
commit 75c3653be4

View file

@ -726,7 +726,7 @@ qfo_relocate_refs (qfo_t *qfo)
// these should never appear in a qfo file // these should never appear in a qfo file
break; break;
case rel_def_op: case rel_def_op:
//FIXME how? QFO_INT (qfo, reloc->space, reloc->offset) = reloc->target;
break; break;
case rel_def_def: case rel_def_def:
QFO_INT (qfo, reloc->space, reloc->offset) = def->offset; QFO_INT (qfo, reloc->space, reloc->offset) = def->offset;
@ -738,7 +738,7 @@ qfo_relocate_refs (qfo_t *qfo)
QFO_INT (qfo, reloc->space, reloc->offset) = reloc->target; QFO_INT (qfo, reloc->space, reloc->offset) = reloc->target;
break; break;
case rel_def_field: case rel_def_field:
//FIXME how? QFO_INT (qfo, reloc->space, reloc->offset) = def->offset;
break; break;
case rel_op_a_def_ofs: case rel_op_a_def_ofs:
QFO_STATEMENT (qfo, reloc->offset)->a += def->offset; QFO_STATEMENT (qfo, reloc->offset)->a += def->offset;