From: Bob Wilson Date: Fri, 4 Apr 2008 23:25:49 +0000 (+0000) Subject: 2008-04-04 Adrian Bunk X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1b6e95c26708dc998bd0d9a1f134601d8593bc62;p=deliverable%2Fbinutils-gdb.git 2008-04-04 Adrian Bunk Bob Wilson * config/tc-xtensa.c (xg_apply_fix_value): Check return code from call to decode_reloc. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 43945ccb85..d0ebb23af9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2008-04-04 Adrian Bunk + Bob Wilson + + * config/tc-xtensa.c (xg_apply_fix_value): Check return code from + call to decode_reloc. + 2008-04-04 H.J. Lu * NEWS: Mention XSAVE. Change CLMUL to PCLMUL. diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index 6ef182575f..101c150f81 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c @@ -4969,8 +4969,8 @@ xg_apply_fix_value (fixS *fixP, valueT val) xtensa_opcode opcode; char *const fixpos = fixP->fx_frag->fr_literal + fixP->fx_where; - (void) decode_reloc (fixP->fx_r_type, &slot, &alt_reloc); - if (alt_reloc) + if (decode_reloc (fixP->fx_r_type, &slot, &alt_reloc) + || alt_reloc) as_fatal (_("unexpected fix")); if (!insnbuf)