X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=parmode.h;fp=parmode.h;h=8aed03ca35e9cf6566a2efe691096fcfa06d6f27;hp=a0cc8de0ec6b19f8a02247437678d7a32fe17001;hb=22203fdc3bec792b0cd2df838eda54d571af7449;hpb=10cdaba79316c9ead4d37b46e2de7f8176ce8012 diff --git a/parmode.h b/parmode.h index a0cc8de..8aed03c 100644 --- a/parmode.h +++ b/parmode.h @@ -1162,16 +1162,15 @@ CHK_FOR_DISPn: // expr[.L] AMn = ABSL; - // When PC relative is enforced, check for any symbols that aren't - // EQU'd, in this case it's an illegal mode - if ((CHECK_OPTS(OPT_PC_RELATIVE)) && (AnEXATTR & REFERENCED) && (AnEXATTR & DEFINED) && (!(AnEXATTR & EQUATED))) - return error("relocation not allowed"); - // .L is forced here if (*tok == DOTL) { + // When PC relative is enforced, check for any symbols that aren't + // EQU'd, in this case it's an illegal mode + if ((CHECK_OPTS(OPT_PC_RELATIVE)) && (AnEXATTR & (DEFINED | REFERENCED | EQUATED) == (DEFINED | REFERENCED))) + return error("relocation not allowed when o10 is enabled9"); + tok++; - AMn = ABSL; } else {