This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: ld/1247: IA64: Linker crashes with undefined hidden symbols
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Fri, 26 Aug 2005 13:40:43 -0700
- Subject: PATCH: ld/1247: IA64: Linker crashes with undefined hidden symbols
allocate_fptr doesn't check if a hidden symbol is undefined, which
leads to crash later. This patch fixes it.
H.J.
----
2005-08-26 H.J. Lu <hongjiu.lu@intel.com>
PR ld/1247
* elfxx-ia64.c (allocate_fptr): Check undefined symbol.
--- bfd/elfxx-ia64.c.hidden 2005-08-26 10:14:04.000000000 -0700
+++ bfd/elfxx-ia64.c 2005-08-26 13:34:06.000000000 -0700
@@ -2776,7 +2776,8 @@ allocate_fptr (dyn_i, data)
if (!x->info->executable
&& (!h
|| ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
- || h->root.type != bfd_link_hash_undefweak))
+ || (h->root.type != bfd_link_hash_undefweak
+ && h->root.type != bfd_link_hash_undefined)))
{
if (h && h->dynindx == -1)
{