Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* an ld bug fix
@ 1997-03-08  0:43 Richard Henderson
  0 siblings, 0 replies; only message in thread
From: Richard Henderson @ 1997-03-08  0:43 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-03-08  0:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-08  0:43 an ld bug fix Richard Henderson

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