You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rasmus Lerdorf <ra...@lerdorf.on.ca> on 1998/07/10 19:13:57 UTC

RTLD_GLOBAL for DSO?

Would anybody object to the following patch?

+++ os.c        Fri Jul 10 13:12:17 1998
@@ -35,9 +35,9 @@
 #else
 #if defined(OSF1) ||\
     (defined(__FreeBSD_version) && (__FreeBSD_version >= 220000))
-    return dlopen((char *)path, RTLD_NOW);
+    return dlopen((char *)path, RTLD_NOW | RTLD_GLOBAL);
 #else
-    return dlopen(path, RTLD_NOW);
+    return dlopen(path, RTLD_NOW | RTLD_GLOBAL);
 #endif
 #endif
 }

Both mod_php3 and mod_perl would benefit from this since both are capable
of being loaded dynamically and in turn loading other things dynamically.

-Rasmus


Re: RTLD_GLOBAL for DSO?

Posted by Dean Gaudet <dg...@arctic.org>.
If you do:

#ifndef RTLD_GLOBAL
#define RTLD_GLOBAL 0
#endif

Then I'm for it. 

Dean

On Fri, 10 Jul 1998, Rasmus Lerdorf wrote:

> Would anybody object to the following patch?
> 
> +++ os.c        Fri Jul 10 13:12:17 1998
> @@ -35,9 +35,9 @@
>  #else
>  #if defined(OSF1) ||\
>      (defined(__FreeBSD_version) && (__FreeBSD_version >= 220000))
> -    return dlopen((char *)path, RTLD_NOW);
> +    return dlopen((char *)path, RTLD_NOW | RTLD_GLOBAL);
>  #else
> -    return dlopen(path, RTLD_NOW);
> +    return dlopen(path, RTLD_NOW | RTLD_GLOBAL);
>  #endif
>  #endif
>  }
> 
> Both mod_php3 and mod_perl would benefit from this since both are capable
> of being loaded dynamically and in turn loading other things dynamically.
> 
> -Rasmus
> 
>