Date: Mon, 18 Aug 1997 18:29:32 -0400 (EDT) From: Brian Mitchell <brian@firehouse.net> To: Nate Williams <nate@mt.sri.com> Cc: "Jordan K. Hubbard" <jkh@FreeBSD.ORG>, hackers@FreeBSD.ORG Subject: Re: [Fwd: Re: Please Help Me Understand dlopen()] Message-ID: <Pine.BSI.3.95.970818182539.4166A-100000@shell.firehouse.net> In-Reply-To: <199708182158.PAA03256@rocky.mt.sri.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 18 Aug 1997, Nate Williams wrote: > > Hmmm - any comments, ld hackers? > > > > The freeBSD dlsym() is - as far as I know - the only dlsym() > > implementation that doesn't search for _funktion() ... > > Here's a quick and dirty patch that implements it. I tested it locally > w/out any problems, but it has lots of possible problems. openbsd's is another that does not look for underscores. freebsd's has a few other minor holes too. If you dlsym() a nonexistant symbol, freebsd (in 2.2.1 atleast) returns a NULL pointer but does not (as it should) set the dlerror() errorcode. > > 1) If fails to prepend another underscore if the symbol already is > underscored. > 2) I haven't tested it enough on the entire system. > 3) It might not be the correct solution. > > > I also complained about dlopen() not searching LD_LIBRARY_PATH. > > I didn't even attempt to look at this. > > > Nate >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.970818182539.4166A-100000>