summaryrefslogtreecommitdiff
path: root/bfd/coff-m68k.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-04-24 13:05:46 +0000
committerNick Clifton <nickc@redhat.com>2007-04-24 13:05:46 +0000
commit8dd6a9b6b3a10ce492bbcc22c617634c6d3f0824 (patch)
tree625219cfbb2b82b94bf0f3008f764499e3eb9009 /bfd/coff-m68k.c
parente43b7ae94c6d7636cbcae32e652b8971383d05c7 (diff)
downloadgdb-8dd6a9b6b3a10ce492bbcc22c617634c6d3f0824.tar.gz
Fix compile time warnings (at -O3 with gcc 4.1.2)
Diffstat (limited to 'bfd/coff-m68k.c')
-rw-r--r--bfd/coff-m68k.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/coff-m68k.c b/bfd/coff-m68k.c
index ae524e47e6a..3d162a0f068 100644
--- a/bfd/coff-m68k.c
+++ b/bfd/coff-m68k.c
@@ -251,11 +251,12 @@ m68kcoff_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
arelent relent;
reloc_howto_type *howto;
+ relent.howto = NULL;
RTYPE2HOWTO (&relent, rel);
howto = relent.howto;
- if (howto->pc_relative)
+ if (howto != NULL && howto->pc_relative)
*addendp += sec->vma;
return howto;