Date: Sun, 16 Jul 2006 12:56:59 +0200 From: Roland Dittel <Roland.Dittel@web.de> To: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de> Cc: hackers@freebsd.org Subject: Re: dlsym() on implicit loaded symbols Message-ID: <44BA1B7B.8000305@web.de> In-Reply-To: <44B92FD7.90801@fs.ei.tum.de> References: <62d3f75eb4400604406fdea341d91e41@web.de> <44B92FD7.90801@fs.ei.tum.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------000906080702090603030500 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Simon 'corecode' Schubert wrote: > Roland Dittel wrote: >> Hi all, >> >> We have a issue with dlsym() on symbols imported by a library that was >> loaded with dlopen(). Our code loads the libssl with dlopen() and then >> do a dlsym() on several symbols. This works for all symbols exported >> by libssl itself but fails for symbols exported by libcrypto. Libssl >> is dynamically linked to libcrypto and should be loaded for libssl. I >> did a truss and the FreeBSD loader loads libcrypto but does not read >> anything from the file pointer. > > could you post a sample code fragment which illustrates the problem you > are seeing? Sure, attached is a simple example that tries to load the symbol CRYPTO_set_id_callback from a libssl handle. The symbol is located in libcrypto and NOT in libssl. Because libssl is dynamically linked to libcrypto I would expect the loader is able to find the symbol, but that's not the case on freebsd. > > cheers > simon > --------------000906080702090603030500--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44BA1B7B.8000305>