MIPS16/GAS: Restore unsupported relocation diagnostics
[deliverable/binutils-gdb.git] / gas / ChangeLog
index 45a505434e74d0f9ea82737917df836ccc8ab514..1c3e80a5780247e81d3945f70bb55e70d3b158ba 100644 (file)
@@ -1,3 +1,150 @@
+2016-06-24  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * config/tc-mips.c (append_insn): Use any `O_symbol' expression
+       unchanged with relaxed MIPS16 instructions.
+       (mips16_extended_frag): Adjust accordingly.  Return 1 right
+       away if a relocation will be required for the symbol requested.
+       Remove dead first relaxation pass code.
+       (mips_relax_frag): Pass `sec' down to `mips16_extended_frag'.
+       (md_convert_frag): Adjust symbol value calculation.  Raise an
+       error if a relocation is required for the symbol requested.
+       * testsuite/gas/mips/mips16@relax-swap3.d: Remove dump patterns,
+       add error output.
+       * testsuite/gas/mips/mips16@relax-swap3.l: New error output.
+       * testsuite/gas/mips/mips16-pcrel-relax-0.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-relax-1.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-relax-2.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-relax-3.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-reloc-0.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-reloc-1.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-reloc-2.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-reloc-3.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-reloc-4.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-reloc-5.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-reloc-6.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-reloc-7.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-addend-0.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-addend-1.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-addend-2.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-addend-3.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-absolute.d: New test.
+       * testsuite/gas/mips/mips16-branch-reloc-0.d: New test.
+       * testsuite/gas/mips/mips16-branch-reloc-1.d: New test.
+       * testsuite/gas/mips/mips16-branch-reloc-2.d: New test.
+       * testsuite/gas/mips/mips16-branch-reloc-3.d: New test.
+       * testsuite/gas/mips/mips16-branch-addend-0.d: New test.
+       * testsuite/gas/mips/mips16-branch-addend-1.d: New test.
+       * testsuite/gas/mips/mips16-branch-addend-2.d: New test.
+       * testsuite/gas/mips/mips16-branch-addend-3.d: New test.
+       * testsuite/gas/mips/mips16-branch-absolute.d: New test.
+       * testsuite/gas/mips/mips16-absolute-reloc-0.d: New test.
+       * testsuite/gas/mips/mips16-absolute-reloc-1.d: New test.
+       * testsuite/gas/mips/mips16-absolute-reloc-2.d: New test.
+       * testsuite/gas/mips/mips16-absolute-reloc-3.d: New test.
+       * testsuite/gas/mips/mips16-pcrel-reloc-2.l: New error output.
+       * testsuite/gas/mips/mips16-pcrel-reloc-3.l: New error output.
+       * testsuite/gas/mips/mips16-pcrel-reloc-6.l: New error output.
+       * testsuite/gas/mips/mips16-pcrel-reloc-7.l: New error output.
+       * testsuite/gas/mips/mips16-pcrel-addend-2.l: New error output.
+       * testsuite/gas/mips/mips16-pcrel-addend-3.l: New error output.
+       * testsuite/gas/mips/mips16-pcrel-absolute.l: New error output.
+       * testsuite/gas/mips/mips16-branch-reloc-2.l: New error output.
+       * testsuite/gas/mips/mips16-branch-reloc-3.l: New error output.
+       * testsuite/gas/mips/mips16-branch-addend-2.l: New error output.
+       * testsuite/gas/mips/mips16-branch-addend-3.l: New error output.
+       * testsuite/gas/mips/mips16-branch-absolute.l: New error output.
+       * testsuite/gas/mips/mips16-absolute-reloc-2.l: New error output.
+       * testsuite/gas/mips/mips16-absolute-reloc-3.l: New error output.
+       * testsuite/gas/mips/mips16-pcrel-relax-0.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-relax-2.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-reloc-0.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-reloc-1.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-reloc-2.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-reloc-3.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-reloc-4.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-reloc-5.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-reloc-6.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-reloc-7.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-addend-0.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-addend-1.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-addend-2.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-addend-3.s: New test source.
+       * testsuite/gas/mips/mips16-pcrel-absolute.s: New test source.
+       * testsuite/gas/mips/mips16-branch-reloc-0.s: New test source.
+       * testsuite/gas/mips/mips16-branch-reloc-1.s: New test source.
+       * testsuite/gas/mips/mips16-branch-reloc-2.s: New test source.
+       * testsuite/gas/mips/mips16-branch-reloc-3.s: New test source.
+       * testsuite/gas/mips/mips16-branch-addend-0.s: New test source.
+       * testsuite/gas/mips/mips16-branch-addend-1.s: New test source.
+       * testsuite/gas/mips/mips16-branch-addend-2.s: New test source.
+       * testsuite/gas/mips/mips16-branch-addend-3.s: New test source.
+       * testsuite/gas/mips/mips16-branch-absolute.s: New test source.
+       * testsuite/gas/mips/mips16-absolute-reloc-0.s: New test source.
+       * testsuite/gas/mips/mips16-absolute-reloc-1.s: New test source.
+       * testsuite/gas/mips/mips16-absolute-reloc-2.s: New test source.
+       * testsuite/gas/mips/mips16-absolute-reloc-3.s: New test source.
+       * testsuite/gas/mips/mips.exp: Run the new tests.
+
+2016-06-24  Alan Modra  <amodra@gmail.com>
+
+       * configure.tgt (alpha-*-openbsd*): Use em=nbsd.
+
+2016-06-23  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * config/tc-mips.c (b_reloc_p): New function.
+       (mips_fix_adjustable): Also keep the original microMIPS symbol
+       referred from branch relocations.
+       * testsuite/gas/mips/branch-local-1.d: New test.
+       * testsuite/gas/mips/branch-local-n32-1.d: New test.
+       * testsuite/gas/mips/branch-local-n64-1.d: New test.
+       * testsuite/gas/mips/micromips@branch-misc-4-64.d: Update
+       relocations.
+       * testsuite/gas/mips/branch-local-1.s: New test source.
+       * testsuite/gas/mips/mips.exp: Run the new cases.
+
+2016-06-23  Graham Markall  <graham.markall@embecosm.com>
+
+       * config/tc-arc.c (options, md_longopts, md_parse_option): Move
+       -mspfp, -mdpfp and -mfpuda out of the sections for dummy
+       options. Correct erroneous enabling of SPFP instructions when
+       using -mnps400.
+
+2016-06-22  Peter Bergner <bergner@vnet.ibm.com>
+
+       * testsuite/gas/ppc/power9.d <brd, brh, brw, mffs, mffs., mffsce,
+       mffscdrn, mffscdrni, mffscrn, mffscrni, mffsl, nandxor, rldixor,
+       setbool, xor3>: New tests.
+       * testsuite/gas/ppc/power9.s: Likewise.
+
+2016-06-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
+
+       * config/tc-xtensa.c: Include elf/xtensa.h.
+
+2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * 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  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS_18_PCREL_S3>
+       <BFD_RELOC_MIPS_19_PCREL_S2>: Avoid null pointer dereferences
+       via `fixP->fx_addsy'.
+
 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
 
        * config/tc-mips.c (md_pcrel_from) <BFD_RELOC_MIPS_18_PCREL_S3>:
This page took 0.025358 seconds and 4 git commands to generate.