From b97e87cc01703e2e612b1fc21c54f90b1a0f4519 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 16 Jun 2014 17:37:46 +0100 Subject: [PATCH] Fixes a problem exposed by the aarcg64/illegal.s test case - where the assembler was generating too many error messages. * config/tc-aarch64.c (md_apply_fix): Ignore unused relocs. --- gas/ChangeLog | 4 ++++ gas/config/tc-aarch64.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 08d2c265337..31d343acdeb 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2014-06-16 Nick Clifton + + * config/tc-aarch64.c (md_apply_fix): Ignore unused relocs. + 2014-06-16 Jiong Wang * config/tc-aarch64.c (END_OF_INSN): New macro. diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 2509529e0a7..c7ace79f1d1 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -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"), -- 2.30.2