diff options
Diffstat (limited to 'gas/config/tc-alpha.c')
-rw-r--r-- | gas/config/tc-alpha.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 2d04078..29fa922 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -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; |