Re: what is RTLD_NOW supposed to be?
- From: Martin Baulig <baulig Stud Informatik Uni-Trier DE>
- To: Martin Dieringer <dieringe zedat fu-berlin de>
- cc: gnome-list gnome org
- Subject: Re: what is RTLD_NOW supposed to be?
- Date: Sun, 12 Apr 1998 02:43:01 +0200 (CEST)
-----BEGIN PGP SIGNED MESSAGE-----
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
baulig@castor.uni-trier.de, http://www.home-of-linux.org/
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
- ------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBNTAOGIA8K7jIF4Q1AQHl1wP/Wc1X3S2/qXZcZdY+Jlpa7oIT5HcTxtGy
LrnX9kU5pSp+aWwxnrc1nCiHO0vP3wAk9WU0uvHROd8OPhFCHfF1/uATeWCr7IhL
ATtFXXc4/D4vQI4QpCf1zk32XmCAlEvqLLL64IrgPA7STIC8BQJ7KhQoOEb7cbZ9
/YHTIzmQbJI=
=3fsD
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]