Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <richard@stommel.tamu.edu>
Subject: Re: again: dlopen (ld)  bug
Date: Thu, 20 Mar 1997 14:45:37 -0600 (CST)	[thread overview]
Message-ID: <334da46fd83c7b39700ae86d859046d1.axp-list@archive.invalid> (raw)
In-Reply-To: <9703201958.ZM1954@fabsoft2.zarm.uni-bremen.de>

> Just rebuilt glibc 2.0.2 with binutils 2.7.0.10 and noticed
> dlopen is still not working in dynamically linked programs.

I thought I posted this here a week or two ago, but perhaps
it fell through the cracks.

r~

Tue Mar 18 23:03:17 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.

diff -u -r --new-file --show-function-line=^[A-Za-z_] /home/raeburn/offsite/snap/old/gas-970318/bfd/elf64-alpha.c ./bfd/elf64-alpha.c
--- /home/raeburn/offsite/snap/old/gas-970318/bfd/elf64-alpha.c	Tue Mar 18 01:13:33 1997
+++ ./bfd/elf64-alpha.c	Wed Mar 19 01:12:59 1997
@@ -46,6 +46,7 @@ Foundation, Inc., 59 Temple Place - Suit
 #define ECOFF_64
 #include "ecoffswap.h"
 
+static boolean elf64_alpha_mkobject PARAMS ((bfd *));
 static struct bfd_hash_entry * elf64_alpha_link_hash_newfunc
   PARAMS((struct bfd_hash_entry *, struct bfd_hash_table *, const char *));
 static struct bfd_link_hash_table * elf64_alpha_bfd_link_hash_table_create
@@ -97,7 +98,14 @@ static boolean elf64_alpha_can_merge_got
   PARAMS((bfd *, bfd *));
 static void elf64_alpha_merge_gots
   PARAMS((bfd *, bfd *));
-
+static boolean elf64_alpha_calc_got_offsets_for_symbol
+  PARAMS ((struct alpha_elf_link_hash_entry *, PTR));
+static void elf64_alpha_calc_got_offsets PARAMS ((struct bfd_link_info *));
+static void elf64_alpha_strip_section_from_output PARAMS ((asection *));
+static boolean elf64_alpha_always_size_sections
+  PARAMS ((bfd *, struct bfd_link_info *));
+static boolean elf64_alpha_calc_dynrel_sizes
+  PARAMS ((struct alpha_elf_link_hash_entry *, struct bfd_link_info *));
 static boolean elf64_alpha_check_relocs
   PARAMS((bfd *, struct bfd_link_info *, asection *sec,
 	  const Elf_Internal_Rela *));
@@ -1777,7 +1785,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 +1947,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-20 20:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9703201958.ZM1954@fabsoft2.zarm.uni-bremen.de>
1997-03-20 20:45 ` Richard Henderson [this message]
     [not found] <199703202045.OAA27125@stommel.tamu.edu>
1997-04-03 22:40 ` again: dlopen (ld) bug D. Champion
1997-04-10 19:02   ` Richard Henderson
1997-03-20 18:58 Zarmfab Software Development
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