* config/tc-alpha.c (assemble_insn): Don't segv on NULL reloc_operand.

This commit is contained in:
Alan Modra 2007-11-26 01:43:43 +00:00
parent da43e35109
commit ee21dcabf8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-11-26 Thomas Ogrisegg <tom-bugs@gas.fnord.at>
* config/tc-alpha.c (assemble_insn): Don't segv on NULL reloc_operand.
2007-11-19 Bob Wilson <bob.wilson@acm.org>
* config/xtensa-istack.h (tinsn_struct): Replace linenum field

View File

@ -1968,7 +1968,8 @@ assemble_insn (const struct alpha_opcode *opcode,
{
reloc_howto_type *reloc_howto
= bfd_reloc_type_lookup (stdoutput, reloc);
if (reloc_howto->bitsize != reloc_operand->bits)
if (reloc_operand == NULL
|| reloc_howto->bitsize != reloc_operand->bits)
{
as_bad (_("invalid relocation for field"));
return;