Maciej W. Rozycki 41947d9e38 MIPS/GAS: Handle resolved R6 PC-relative relocations
Complement commit 7361da2c952e ("Add support for MIPS R6.") and fix
internal errors like:

foo.s: Assembler messages:
foo.s: Internal error!
Assertion failure in md_apply_fix at .../gas/config/tc-mips.c:15028.
Please report this bug.

triggered by resolved R6 PC-relative relocations in sources containing
R6 code fragments wrapped into ISA override blocks embedded within code
otherwise assembled for an older ISA.

	gas/
	* config/tc-mips.c (calculate_reloc) <BFD_RELOC_HI16_S_PCREL>
	<BFD_RELOC_LO16_PCREL>: New switch cases.
	(md_apply_fix) <BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL>:
	Move switch cases along `BFD_RELOC_MIPS_JMP'.
	<BFD_RELOC_MIPS_21_PCREL_S2, BFD_RELOC_MIPS_26_PCREL_S2>
	<BFD_RELOC_MIPS_18_PCREL_S3, BFD_RELOC_MIPS_19_PCREL_S2>: Handle
	the resolved case.
	* testsuite/gas/mips/pcrel-reloc-4.d: New test.
	* testsuite/gas/mips/pcrel-reloc-4-r6.d: New test.
	* testsuite/gas/mips/pcrel-reloc-5.d: New test.
	* testsuite/gas/mips/pcrel-reloc-5-r6.d: New test.
	* testsuite/gas/mips/pcrel-reloc-6.d: New test.
	* testsuite/gas/mips/pcrel-reloc-6.l: New list test.
	* testsuite/gas/mips/pcrel-reloc-4.s: New test source.
	* testsuite/gas/mips/pcrel-reloc-6.s: New test source.
	* testsuite/gas/mips/mips.exp: Run the new tests.
2016-06-21 23:00:20 +01:00
..
2016-01-01 23:00:01 +10:30
2016-04-03 19:50:02 -04:00
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 15:58:07 +09:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-03-28 20:38:24 -04:00
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-04-03 19:50:02 -04:00
2016-05-24 08:44:19 -04:00
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-05-24 08:55:45 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-06-15 16:25:34 +01:00
2016-05-24 08:49:46 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-04-01 23:10:50 +10:30
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-05-24 08:47:02 -04:00
2016-04-01 23:10:50 +10:30
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-04-14 16:58:01 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-06-15 16:25:34 +01:00
2016-01-01 23:00:01 +10:30
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-05-24 08:52:45 -04:00
2016-04-03 19:50:02 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-06-15 16:25:34 +01:00
2016-01-01 23:00:01 +10:30
2016-02-03 09:21:51 -07:00
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-06-15 16:25:34 +01:00
2016-01-01 23:00:01 +10:30
2016-06-07 22:04:38 +09:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-04-03 20:43:23 -04:00
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-06-05 23:27:41 -04:00
2016-01-01 23:00:01 +10:30
2016-06-05 23:27:41 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-23 01:20:09 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-23 01:21:07 -04:00
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-05-13 00:35:51 -04:00
2016-01-01 23:00:01 +10:30
2016-04-01 23:10:50 +10:30
2016-01-01 23:00:01 +10:30
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-04-03 20:43:23 -04:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-03-21 16:31:46 +00:00
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30
2016-01-01 23:00:01 +10:30