libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: glibc and dlopen self static


From: Gary V. Vaughan
Subject: Re: glibc and dlopen self static
Date: Tue, 01 Nov 2005 10:17:38 +0000
User-agent: Mozilla Thunderbird 1.0 (X11/20050305)

Ralf Wildenhues wrote:
Hi Kean,

* Kean Johnston wrote on Tue, Nov 01, 2005 at 08:06:35AM CET:

instead.  Bug in dlopen/dlerror?

Yes I suspect it must be. I guess in a sense it shows how obscure
the case of testing for being able todlopen yourself if you are
linked statically is :) So perhaps a more pertinent question is,
why is libtool checking for it and does it matter any more?


Good question.

libltdl explicitly allows dlopening self, and supports it even in
statically linked binaries.  The configure time test allows libltdl
to implement the functionality using native dlopen self if that
works, and fallback to preopening (using a statically linked
symbol_name:symbol_address map) when it fails.

If the test is broken atm, then I guess we are always falling back
to the preopen mechanism :-(

Cheers,
        Gary.
--
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]