diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 943ddbe..b0240e3 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -4329,7 +4329,7 @@ macro (ip) addiu $tempreg,$tempreg, (BFD_RELOC_LO16) If we have a constant, we need two instructions anyhow, so we may as well always use the latter form. */ - if ((valueT) offset_expr.X_add_number >= MAX_GPREL_OFFSET || (valueT) offset_expr.X_add_number >= g_switch_value + if ((valueT) offset_expr.X_add_number >= MAX_GPREL_OFFSET || nopic_need_relax (offset_expr.X_add_symbol, 1)) p = NULL; else