forked from Imagelibrary/binutils-gdb
* elfcode.h (elf_slurp_reloc_table_from_section): Don't dereference
NULL function pointers.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user