Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* again: dlopen (ld)  bug
@ 1997-03-20 18:58 Zarmfab Software Development
  0 siblings, 0 replies; 4+ messages in thread
From: Zarmfab Software Development @ 1997-03-20 18:58 UTC (permalink / raw)


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

Could anybody point me to a fix  ? -- i'd really like to get dynamic loading
working, because i need tcl and perl.

-- 
Martin Cornelius, ZARMFAB software development, University of Bremen
phone: 49-421-218-4807    FAX: 49-421-218-3889
email: fabsoft@zarm.uni-bremen.de
paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany

--
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] 4+ messages in thread

* Re: again: dlopen (ld)  bug
       [not found] <9703201958.ZM1954@fabsoft2.zarm.uni-bremen.de>
@ 1997-03-20 20:45 ` Richard Henderson
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 1997-03-20 20:45 UTC (permalink / raw)


> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: again: dlopen (ld)  bug
       [not found] <199703202045.OAA27125@stommel.tamu.edu>
@ 1997-04-03 22:40 ` D. Champion
  1997-04-10 19:02   ` Richard Henderson
  0 siblings, 1 reply; 4+ messages in thread
From: D. Champion @ 1997-04-03 22:40 UTC (permalink / raw)


>> 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.

Thanks for the patch.  I need libdl to work, but I only have RHS's
glibc-961212-3 and binutils-2.7.0.2-4.  I got the SRPM for that, but
MIT only seems to have v2.7.0.  Where can I find binutils-2.7.0.10,
or 8 patches?

(Or, alternatively, will a newer glibc RPM "just work"?  I have no
problem with building my own software, but I hate how it messes with
RPM's head, and would rather just get their rebuild if they have a
good one.)

-D.

--
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] 4+ messages in thread

* Re: again: dlopen (ld)  bug
  1997-04-03 22:40 ` again: dlopen (ld) bug D. Champion
@ 1997-04-10 19:02   ` Richard Henderson
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 1997-04-10 19:02 UTC (permalink / raw)


> Where can I find binutils-2.7.0.10, or 8 patches?

The final patchlevel is an invention of H.J. Lu.  You can 
find his packaging on tsx-11.mit.edu:/pub/linux/packages/GCC
and its mirrors.

r~

--
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] 4+ messages in thread

end of thread, other threads:[~1997-04-10 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
     [not found] <9703201958.ZM1954@fabsoft2.zarm.uni-bremen.de>
1997-03-20 20:45 ` Richard Henderson
1997-03-20 18:58 Zarmfab Software Development

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