Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <richard@stommel.tamu.edu>
Subject: an ld bug fix
Date: Fri, 7 Mar 1997 18:43:04 -0600 (CST)	[thread overview]
Message-ID: <80c1d9d69b90cfab4ec188da56e82cf1.axp-list@archive.invalid> (raw)

Those that have been building X and running into odd problems
with symbols not being resolved correctly at runtime, as well
as strange problems with libXt programs, will want to try the
following patch.

Note that to solve the symbol resolution problems, you'll have 
to rebuild glibc as well, as the victim of this bug in that
case is ld.so.

r~

Fri Mar  7 18:48:18 1997  Richard Henderson  <rth@tamu.edu>

	* elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create
	.plt entry if we've taken the function's address.
	(elf64_alpha_merge_gots): Merge collected flags info as well.

--- gas/bfd/elf64-alpha.c.orig	Mon Jan 27 06:49:03 1997
+++ gas/bfd/elf64-alpha.c	Fri Mar  7 18:46:13 1997
@@ -1777,7 +1777,8 @@ elf64_alpha_adjust_dynamic_symbol (info,
 
   if (h->root.type != bfd_link_hash_undefweak
       && alpha_elf_dynamic_symbol_p (h, info)
-      && (h->type == STT_FUNC
+      && ((h->type == STT_FUNC
+	   && !(ah->flags & ALPHA_ELF_LINK_HASH_LU_ADDR))
 	  || (h->type == STT_NOTYPE
 	      && ah->flags == ALPHA_ELF_LINK_HASH_LU_FUNC))
       /* Don't prevent otherwise valid programs from linking by attempting
@@ -1938,6 +1939,7 @@ elf64_alpha_merge_gots (a, b)
 	    for (ae = *start; ae ; ae = ae->next)
 	      if (ae->gotobj == a && ae->addend == be->addend)
 		{
+		  ae->flags |= be->flags;
 		  *pbe = be->next;
 		  goto global_found;
 		}

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

                 reply	other threads:[~1997-03-08  0:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox