aboutsummaryrefslogtreecommitdiff
path: root/bfd/peicode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-02-15 22:30:09 +1030
committerAlan Modra <amodra@gmail.com>2022-02-16 22:05:24 +1030
commit8b14b0cb997af3207865b342137007b406259786 (patch)
treeeb3f81dbe424698866894804d4c9744c2f2e297e /bfd/peicode.h
parent1f9b1a84350d3755ce8620900a35c3d1997535e6 (diff)
downloadgdb-8b14b0cb997af3207865b342137007b406259786.zip
gdb-8b14b0cb997af3207865b342137007b406259786.tar.gz
gdb-8b14b0cb997af3207865b342137007b406259786.tar.bz2
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.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r--bfd/peicode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index bbf4481..0346bc2 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -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 ++;