forked from Imagelibrary/binutils-gdb
pe_ILF_make_a_symbol_reloc segfault
pei-aarch64-little apparently lacks support for BFD_RELOC_RVA. * peicode.h (pe_ILF_make_a_symbol_reloc): Don't segfault on NULL howto.
This commit is contained in:
@@ -489,7 +489,7 @@ pe_ILF_make_a_symbol_reloc (pe_ILF_vars * vars,
|
||||
|
||||
internal->r_vaddr = address;
|
||||
internal->r_symndx = sym_index;
|
||||
internal->r_type = entry->howto->type;
|
||||
internal->r_type = entry->howto ? entry->howto->type : 0;
|
||||
|
||||
vars->relcount ++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user