[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dlopening the C runtime library
From: |
Ralf Wildenhues |
Subject: |
Re: dlopening the C runtime library |
Date: |
Sun, 6 Dec 2009 09:54:53 +0100 |
User-agent: |
Mutt/1.5.20 (2009-10-28) |
* Howard Chu wrote on Sun, Dec 06, 2009 at 05:39:02AM CET:
> Sam Varshavchik wrote:
> >I'm trying to come up with logic to figure out what I need to pass to
> >lt_dlopen(), or lt_dlopenext() in order to obtain the standard C runtime
> >library, for the purposes of using lt_dlsym() to find common library
> >functions, such as open(), connect(), etc…
> None of this guesswork should be needed. Since the main program
> already depends on libc, you should be able to lt_dlopen(NULL) and
> reference the main program to find libc's symbols.
What's more, in the vast majority of typical cases, the module itself
already depends on libc, so you can just use open, connect etc.
directly, without ever going through lt_dlsym or the like.
Cheers,
Ralf