* config/tc-alpha.c (assemble_insn): Don't segv on NULL reloc_operand.
This commit is contained in:
parent
da43e35109
commit
ee21dcabf8
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
2007-11-19 Bob Wilson <bob.wilson@acm.org>
|
||||||
|
|
||||||
* config/xtensa-istack.h (tinsn_struct): Replace linenum field
|
* 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
|
reloc_howto_type *reloc_howto
|
||||||
= bfd_reloc_type_lookup (stdoutput, reloc);
|
= 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"));
|
as_bad (_("invalid relocation for field"));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue