[PATCH] define RTLD_LOCAL
Yaakov (Cygwin/X)
yselkowitz@users.sourceforge.net
Sun Aug 8 05:49:00 GMT 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winsup-RTLD_LOCAL.patch
Type: text/x-patch
Size: 800 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20100808/4599df4a/attachment.bin>
More information about the Cygwin-patches
mailing list