diff options
author | Nick Clifton <nickc@redhat.com> | 2006-07-13 09:07:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-07-13 09:07:36 +0000 |
commit | 9d104ea3ca33c9667680eb72ac6fa80d6edf9d76 (patch) | |
tree | 5cf698ad99cb23ebaf22a97b71708907e6241fdb /bfd/coff-sh.c | |
parent | 29e20f5a770db439fa3f2ace20f297e0e7b31d6c (diff) | |
download | binutils-redhat-9d104ea3ca33c9667680eb72ac6fa80d6edf9d76.tar.gz |
* coff-sh.c (_bfd_sh_align_load_span): Catch sh_insn_info() returning a NULL
value.
Diffstat (limited to 'bfd/coff-sh.c')
-rw-r--r-- | bfd/coff-sh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c index fcfee71898..bc03d5fa55 100644 --- a/bfd/coff-sh.c +++ b/bfd/coff-sh.c @@ -2510,8 +2510,9 @@ _bfd_sh_align_load_span (abfd, sec, contents, swap, relocs, next2_insn = bfd_get_16 (abfd, contents + i + 4); next2_op = sh_insn_info (next2_insn); - if ((next2_op->flags & (LOAD | STORE)) == 0 - && sh_load_use (insn, op, next2_insn, next2_op)) + if (next2_op == NULL + || ((next2_op->flags & (LOAD | STORE)) == 0 + && sh_load_use (insn, op, next2_insn, next2_op))) ok = FALSE; } |