author | Mike Pall <mike> | 2013年08月22日 19:29:09 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013年08月22日 19:29:09 +0200 |
commit | a6936be814adee5d4d61e729d91b2c3dd8e16e6e (patch) | |
tree | ee18d62157f5ac39adfc0269c25e2d6a60559d79 | |
parent | fd1a8ddb3ce5f22724b411c4dbc2550bd8776eba (diff) | |
download | gsl-shell-a6936be814adee5d4d61e729d91b2c3dd8e16e6e.tar.gz |
-rw-r--r-- | src/host/buildvm_asm.c | 2 |
diff --git a/src/host/buildvm_asm.c b/src/host/buildvm_asm.c index f18d1493..6117c7ed 100644 --- a/src/host/buildvm_asm.c +++ b/src/host/buildvm_asm.c @@ -100,7 +100,7 @@ static void emit_asm_wordreloc(BuildCtx *ctx, uint8_t *p, int n, fprintf(ctx->fp, "\tblx %s\n", sym); } else if ((ins & 0x0e000000u) == 0x0a000000u) { fprintf(ctx->fp, "\t%s%.2s %s\n", (ins & 0x01000000u) ? "bl" : "b", - "eqnecsccmiplvsvchilsgeltgtle" + 2*(ins >> 28), sym); + &"eqnecsccmiplvsvchilsgeltgtle"[2*(ins >> 28)], sym); } else { fprintf(stderr, "Error: unsupported opcode %08x for %s symbol relocation.\n", |