Re: what is RTLD_NOW supposed to be?


On Sun, 12 Apr 1998, Martin Dieringer wrote:

> gnome-libs/libgnome/gnome-dl.c:41: #error what is RTLD_NOW supposed to be?
> What does RTLD_NOW mean and where is it supposed to be defined?
> I am trying to compile gnome-lib on FreeBSD 2.2.2-RELEASE. 

- From /usr/include/dlfcn.h (GNU libc):

/* The MODE argument to `dlopen' contains one of the following: */
#define RTLD_LAZY       0x001   /* Lazy function call binding.  */
#define RTLD_NOW        0x002   /* Immediate function call binding.  */
#define RTLD_BINDING_MASK 0x3   /* Mask of binding time value.  */

But BSDI 3.0 defines it to be zero - sorry I really don't know what's it
on FreeBSD.

- From dlopen(3):

       #include <dlfcn.h>

       void *dlopen (const char *filename, int flag);

       flag must be either RTLD_LAZY, meaning  resolve  undefined
       symbols  as  code from the dynamic library is executed, or
       RTLD_NOW, meaning resolve  all  undefined  symbols  before
       dlopen  returns, and fail if this cannot be done.  Option-
       ally, RTLD_GLOBAL may be or'ed with flag,  in  which  case
       the  external  symbols defined in the library will be made
       available to subsequently loaded libraries.

That's for the GNU libc on Linux.

- -----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier,
   Key: 1024-bit key with ID C8178435 created 1997/01/24 
   ID:  67 C1 84 A0 47 F5 11 C5  5F 68 4C 84 99 05 C3 92
   Finger me for public key or fetch finger.txt from the url above
- ------------------------------------------------------------------

Version: 2.6.3i
Charset: noconv


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