summaryrefslogtreecommitdiffstats
path: root/bfd/coff-m68k.c
diff options
context:
space:
mode:
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 ae524e47e6..3d162a0f06 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;
OpenPOWER on IntegriCloud