8 Aug 2010 07:49
[PATCH] define RTLD_LOCAL
Yaakov (Cygwin/X <yselkowitz <at> users.sourceforge.net>
2010-08-08 05:49:13 GMT
2010-08-08 05:49:13 GMT
POSIX requires RTLD_LOCAL to be defined in <dlfcn.h>[1]. While our dlopen() does nothing with its second argument, portable software can rightfully expect the definition to exist alongside the other RTLD_* macros. So why 0? POSIX states wrt dlopen()[2]: > If neither RTLD_GLOBAL nor RTLD_LOCAL are specified, then the default > behavior is unspecified. On Linux, RTLD_LOCAL is the default behaviour[3], and hence is defined as 0[4], therefore I have done the same here. Patch attached. Since this doesn't actually do anything, I wasn't sure if I should bump CYGWIN_VERSION_API_MINOR for this or not; I can certainly do so before committing if desired. Yaakov [1] http://www.opengroup.org/onlinepubs/9699919799/basedefs/dlfcn.h.html [2] http://www.opengroup.org/onlinepubs/9699919799/functions/dlopen.html [3] http://linux.die.net/man/3/dlopen [4] http://sourceware.org/git/?p=glibc.git;a=blob;f=bits/dlfcn.h
RSS Feed