PR26505, ASAN: xstormy16_elf_relax_section elf32-xstormy16.c:595

PR 26505
	* elf32-xstormy16.c (xstormy16_elf_relax_section): Check
	is_elf_hash_table before accessing elf fields.
This commit is contained in:
Alan Modra 2020-08-25 17:56:08 +09:30
parent 8640c87dcd
commit 1ab8d92897
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2020-08-25 Alan Modra <amodra@gmail.com>
PR 26505
* elf32-xstormy16.c (xstormy16_elf_relax_section): Check
is_elf_hash_table before accessing elf fields.
2020-08-25 Alan Modra <amodra@gmail.com>
PR 26482

View File

@ -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. */