Subject: Re: ELF dlsym() bugs?
To: None <port-pmax@netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: port-pmax
Date: 01/19/1999 15:51:43
I just grabbed the patch and applied it to my NetBSD-1.3.3/pmax and it
seems to work find. Fixed the problem I was having. If anyone wants it,
its availabe from
http://www-mtl.mit.edu/~mcmahill/netbsd/ld.elf_so
Thats the NetBSD-1.3.3/pmax version with the patch from PR bin/5890
-Dan
On Tue, 19 Jan 1999, Simon Burge wrote:
> On Mon, 18 Jan 1999 23:35:31 -0800 Jonathan Stone wrote:
>
> >
> > >> PR port-pmax/6817 says that 1.3.3's dlopen/dlsym() don't properly
> > >> handle doing a dlsym() when more than one library has defined the
> > >> dlsym()'d symbol.
> >
> > >Is this problem related to bin/5890 ?
> >
> > Yes, as far as I can tell, its the same problem. Thank you.
>
> FWIW, this patch works fine on my -current pmax. I'll try it on my
> 1.3.3 machine soon too.
>
> > But is this how dl*() is supposed to behave on ELF?
>
> I'm tempted to say it shouldn't depend on the object file format. That
> said, Solaris 2.6/sparc (an ELF system) returns the "corrent" (ie,
> `libc_sin 0' behaviour).
>
> I'd say go with it, and I'll test it under 1.3.3 and send a pull-up.
>
> Simon.
>