* elfcode.h (elf_slurp_reloc_table_from_section): Don't dereference
NULL function pointers.
This commit is contained in:
parent
7d773d96db
commit
90fff0d44f
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-06-05 Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
* elfcode.h (elf_slurp_reloc_table_from_section): Don't dereference
|
||||
NULL function pointers.
|
||||
|
||||
2003-06-05 Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
* simple.c (bfd_simple_get_relocated_section_contents): Call
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue