PR26505, ASAN: xstormy16_elf_relax_section elf32-xstormy16.c:595
authorAlan Modra <amodra@gmail.com>
Tue, 25 Aug 2020 08:26:08 +0000 (17:56 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 25 Aug 2020 13:37:10 +0000 (23:07 +0930)
PR 26505
* elf32-xstormy16.c (xstormy16_elf_relax_section): Check
is_elf_hash_table before accessing elf fields.

bfd/ChangeLog
bfd/elf32-xstormy16.c

index c3342ca0966f2c5ffcb291d0aa0ff8f13ed70ca2..fbdef4e5c7528ca831c9661592633dcbee9c8eab 100644 (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
index b0644f17bdd1239852b8fa90ffb358def67d07e8..3bd147bc3583547a5f852458503a92c635546265 100644 (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.  */
This page took 0.028148 seconds and 4 git commands to generate.