Dump code addresses as hex, too.

This commit is contained in:
Bill Currie 2011-03-05 16:25:56 +09:00
parent 2f74e6e4bf
commit e7e8220246

View file

@ -270,7 +270,7 @@ qfo_relocs (qfo_t *qfo)
case rel_op_b_def: case rel_op_b_def:
case rel_op_c_def: case rel_op_c_def:
def = qfo->defs + reloc->target; def = qfo->defs + reloc->target;
printf (" op.%c@%d def#%d %s", printf (" op.%c@%x def#%d %s",
reloc->type - rel_op_a_def + 'a', reloc->type - rel_op_a_def + 'a',
reloc->offset, reloc->target, reloc->offset, reloc->target,
QFO_GETSTR (qfo, def->name)); QFO_GETSTR (qfo, def->name));
@ -278,7 +278,7 @@ qfo_relocs (qfo_t *qfo)
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:
printf (" op.%c op@%d", reloc->type - rel_op_a_def + 'a', printf (" op.%c op@%x", reloc->type - rel_op_a_def + 'a',
reloc->offset); reloc->offset);
break; break;
case rel_def_op: case rel_def_op: