[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/26416] UBSAN error: bfd/elf64-alpha.c:4819:10:

From: amodra at gmail dot com
Subject: [Bug binutils/26416] UBSAN error: bfd/elf64-alpha.c:4819:10:
Date: Thu, 27 Aug 2020 12:22:44 +0000


--- Comment #4 from Alan Modra <amodra at gmail dot com> ---
Never mind, I'm going to commit the following
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -3464,9 +3464,8 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info
*info, bfd_vma symval,
   bfd_boolean dynamic, use_gottprel;
   unsigned long new_symndx;

-  if (info->h == NULL)
-    return TRUE; /* FIXME: Should this be return FALSE ?  */
-  dynamic = alpha_elf_dynamic_symbol_p (&info->h->root, info->link_info);
+  dynamic = (info->h != NULL
+            && alpha_elf_dynamic_symbol_p (&info->h->root, info->link_info));

   /* If a TLS symbol is accessed using IE at least once, there is no point
      to use dynamic model for it.  */

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]