* config/tc-mips.c (md_pcrel_from_section): Disallow PC relative
[deliverable/binutils-gdb.git] / gas / config / tc-mips.c
index 4eca5bb81e728a98e650253c64d7b1c7a11a40da..ea294e9c149f0120d75938f3d28618a0783a816f 100644 (file)
@@ -11544,6 +11544,10 @@ md_pcrel_from (fixS *fixP)
       /* Return the address of the delay slot.  */
       return addr + 4;
     default:
+      /* We have no relocation type for PC relative MIPS16 intructions.  */
+      if (fixP->fx_addsy && S_GET_SEGMENT (fixP->fx_addsy) != now_seg)
+       as_bad_where (fixP->fx_file, fixP->fx_line,
+                     _("PC relative MIPS16 instruction references a different section"));
       return addr;
     }
 }
This page took 0.0282 seconds and 4 git commands to generate.