Subject: Re: ELF dlsym() bugs?
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Simon Burge <firstname.lastname@example.org>
Date: 01/19/1999 21:24:23
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.