diff options
Diffstat (limited to 'dynasm/dasm_ppc.h')
-rw-r--r-- | dynasm/dasm_ppc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dynasm/dasm_ppc.h b/dynasm/dasm_ppc.h index 774ee6ed..13c44611 100644 --- a/dynasm/dasm_ppc.h +++ b/dynasm/dasm_ppc.h | |||
@@ -202,7 +202,8 @@ void dasm_put(Dst_DECL, int start, ...) | |||
202 | case DASM_ALIGN: ofs += (ins & 255); b[pos++] = ofs; break; | 202 | case DASM_ALIGN: ofs += (ins & 255); b[pos++] = ofs; break; |
203 | case DASM_REL_LG: | 203 | case DASM_REL_LG: |
204 | n = (ins & 2047) - 10; pl = D->lglabels + n; | 204 | n = (ins & 2047) - 10; pl = D->lglabels + n; |
205 | if (n >= 0) { CKPL(lg, LG); goto putrel; } /* Bkwd rel or global. */ | 205 | /* Bkwd rel or global. */ |
206 | if (n >= 0) { CK(n>=10||*pl<0, RANGE_LG); CKPL(lg, LG); goto putrel; } | ||
206 | pl += 10; n = *pl; | 207 | pl += 10; n = *pl; |
207 | if (n < 0) n = 0; /* Start new chain for fwd rel if label exists. */ | 208 | if (n < 0) n = 0; /* Start new chain for fwd rel if label exists. */ |
208 | goto linkrel; | 209 | goto linkrel; |