aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-11-26 01:43:43 +0000
committerAlan Modra <amodra@gmail.com>2007-11-26 01:43:43 +0000
commitee21dcabf8535bf9a97d9d35fae5715bcbd77e7e (patch)
tree9e1a9d11f485ca2bc1dadb714a4d4316ceb93327 /gas
parentda43e35109b25a8546be0b8dab1a132dc1240472 (diff)
downloadgdb-ee21dcabf8535bf9a97d9d35fae5715bcbd77e7e.zip
gdb-ee21dcabf8535bf9a97d9d35fae5715bcbd77e7e.tar.gz
gdb-ee21dcabf8535bf9a97d9d35fae5715bcbd77e7e.tar.bz2
* config/tc-alpha.c (assemble_insn): Don't segv on NULL reloc_operand.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-alpha.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a0808a7..4dbbd02 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
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;