mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 19:14:52 +08:00
* config/tc-alpha.c (assemble_insn): Don't segv on NULL reloc_operand.
This commit is contained in:
parent
da43e35109
commit
ee21dcabf8
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user