summaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2003-06-06 02:12:04 +0000
committerDaniel Jacobowitz <dan@debian.org>2003-06-06 02:12:04 +0000
commit74734fd476899c963f8521cc16485d163f40588a (patch)
treefab63fa3f118b53842e770638093e2923659db26 /bfd/elfcode.h
parent626d5f074d1239708d58b85fcc10b0ed64493de7 (diff)
downloadbinutils-redhat-cagney_convert-20030606-branch.tar.gz
* elfcode.h (elf_slurp_reloc_table_from_section): Don't dereferencecagney_convert-20030606-branchpointcagney_convert-20030606-branch
NULL function pointers.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 55c5b4264e..0263631e79 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -1363,7 +1363,9 @@ elf_slurp_reloc_table_from_section (abfd, asect, rel_hdr, reloc_count,
relent->addend = rela.r_addend;
- if (entsize == sizeof (Elf_External_Rela))
+ if ((entsize == sizeof (Elf_External_Rela)
+ && ebd->elf_info_to_howto != NULL)
+ || ebd->elf_info_to_howto_rel == NULL)
(*ebd->elf_info_to_howto) (abfd, relent, &rela);
else
(*ebd->elf_info_to_howto_rel) (abfd, relent, &rela);