if (evexpr(fup->expr, &eval, &eattr, &esym) != OK)
continue;
- if ((CHECK_OPTS(OPT_PC_RELATIVE)) && (eattr & REFERENCED) && (eattr & DEFINED) && (!(eattr & EQUATED)))
+ if ((CHECK_OPTS(OPT_PC_RELATIVE)) && (eattr & (DEFINED | REFERENCED | EQUATED)) == (DEFINED | REFERENCED))
{
- error("relocation not allowed");
+ error("relocation not allowed when o10 is enabled");
continue;
}
}
SYM * sy = fup->symbol;
eattr = sy->sattr;
- if ((CHECK_OPTS(OPT_PC_RELATIVE)) && (eattr & REFERENCED) && (eattr & DEFINED) && (!(eattr & EQUATED)))
+ if ((CHECK_OPTS(OPT_PC_RELATIVE)) && (eattr & (DEFINED | REFERENCED | EQUATED)) == (DEFINED | REFERENCED))
{
- error("relocation not allowed");
+ error("relocation not allowed when o10 is enabled");
continue;
}