aboutsummaryrefslogtreecommitdiff
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
commit40b1c6c5d4ec74ccf53e7d192b555575093155cd (patch)
tree679f82a3b158788845b2bcdaf9b2f811ba82fe0b /bfd/coff-m68k.c
parent1a0a850df64ce80209bb834ea1a37529a251a6c4 (diff)
downloadgdb-40b1c6c5d4ec74ccf53e7d192b555575093155cd.zip
gdb-40b1c6c5d4ec74ccf53e7d192b555575093155cd.tar.gz
gdb-40b1c6c5d4ec74ccf53e7d192b555575093155cd.tar.bz2
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 ae524e4..3d162a0 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;