// 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
{