Fixes a problem exposed by the aarcg64/illegal.s test case - where the assembler was
authorNick Clifton <nickc@redhat.com>
Mon, 16 Jun 2014 16:37:46 +0000 (17:37 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 16 Jun 2014 16:40:02 +0000 (17:40 +0100)
generating too many error messages.

* config/tc-aarch64.c (md_apply_fix): Ignore unused relocs.

gas/ChangeLog
gas/config/tc-aarch64.c

index 08d2c2653378603c99012f083097b2ec2bd7e715..31d343acdebd7b4393bae2db4869d41f87232acb 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-16  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-aarch64.c (md_apply_fix): Ignore unused relocs.
+
 2014-06-16  Jiong Wang  <jiong.wang@arm.com>
 
        * config/tc-aarch64.c (END_OF_INSN): New macro.
index 2509529e0a727c877ed66ee7fe122e658da3b2e1..c7ace79f1d1c6fcd49ac5b3da4b78ab062eec1f5 100644 (file)
@@ -6665,6 +6665,10 @@ md_apply_fix (fixS * fixP, valueT * valP, segT seg)
     case BFD_RELOC_AARCH64_TLSDESC_CALL:
       break;
 
+    case BFD_RELOC_UNUSED:
+      /* An error will already have been reported.  */
+      break;
+
     default:
       as_bad_where (fixP->fx_file, fixP->fx_line,
                    _("unexpected %s fixup"),