diff options
Diffstat (limited to 'dynasm/dasm_arm.h')
-rw-r--r-- | dynasm/dasm_arm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dynasm/dasm_arm.h b/dynasm/dasm_arm.h index 691cfdd7..d83cbbb3 100644 --- a/dynasm/dasm_arm.h +++ b/dynasm/dasm_arm.h | |||
@@ -211,7 +211,8 @@ void dasm_put(Dst_DECL, int start, ...) | |||
211 | case DASM_ALIGN: ofs += (ins & 255); b[pos++] = ofs; break; | 211 | case DASM_ALIGN: ofs += (ins & 255); b[pos++] = ofs; break; |
212 | case DASM_REL_LG: | 212 | case DASM_REL_LG: |
213 | n = (ins & 2047) - 10; pl = D->lglabels + n; | 213 | n = (ins & 2047) - 10; pl = D->lglabels + n; |
214 | if (n >= 0) { CKPL(lg, LG); goto putrel; } /* Bkwd rel or global. */ | 214 | /* Bkwd rel or global. */ |
215 | if (n >= 0) { CK(n>=10||*pl<0, RANGE_LG); CKPL(lg, LG); goto putrel; } | ||
215 | pl += 10; n = *pl; | 216 | pl += 10; n = *pl; |
216 | if (n < 0) n = 0; /* Start new chain for fwd rel if label exists. */ | 217 | if (n < 0) n = 0; /* Start new chain for fwd rel if label exists. */ |
217 | goto linkrel; | 218 | goto linkrel; |