PR26505, ASAN: xstormy16_elf_relax_section elf32-xstormy16.c:595
Alan Modra
amodra@gmail.com
Tue Aug 25 13:33:30 GMT 2020
PR 26505
* elf32-xstormy16.c (xstormy16_elf_relax_section): Check
is_elf_hash_table before accessing elf fields.
diff --git a/bfd/elf32-xstormy16.c b/bfd/elf32-xstormy16.c
index b0644f17bd..3bd147bc35 100644
--- a/bfd/elf32-xstormy16.c
+++ b/bfd/elf32-xstormy16.c
@@ -588,7 +588,8 @@ xstormy16_elf_relax_section (bfd *dynobj,
/* Assume nothing changes. */
*again = FALSE;
- if (bfd_link_relocatable (info))
+ if (bfd_link_relocatable (info)
+ || !is_elf_hash_table (info->hash))
return TRUE;
/* We only relax the .plt section at the moment. */
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list