mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
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:
parent
8640c87dcd
commit
1ab8d92897
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user