diff options
author | Bob Wilson <bob.wilson@acm.org> | 2008-04-04 23:25:49 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2008-04-04 23:25:49 +0000 |
commit | 1b6e95c26708dc998bd0d9a1f134601d8593bc62 (patch) | |
tree | 974d9beeca1eabade88240857e64446861d4f9f3 /gas/config/tc-xtensa.c | |
parent | c4723173a9d937c4d14c029f4428a43846391fcd (diff) | |
download | gdb-1b6e95c26708dc998bd0d9a1f134601d8593bc62.zip gdb-1b6e95c26708dc998bd0d9a1f134601d8593bc62.tar.gz gdb-1b6e95c26708dc998bd0d9a1f134601d8593bc62.tar.bz2 |
2008-04-04 Adrian Bunk <bunk@stusta.de>
Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (xg_apply_fix_value): Check return code from
call to decode_reloc.
Diffstat (limited to 'gas/config/tc-xtensa.c')
-rw-r--r-- | gas/config/tc-xtensa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index 6ef1825..101c150 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) |