[issue20276] ctypes._dlopen should not force RTLD_NOW

Ronald Oussoren report at bugs.python.org
Thu Jan 16 08:06:40 CET 2014


Ronald Oussoren added the comment:

The big question is why ctypes uses RTLD_NOW in the first place. There's probably a good reason for it because it's added unconditionally to the user provided flags.

BTW. I'd prefer to keep the dlopen flags on OSX the same as on other platforms (that is, either keep the current behavior, or drop RTLD_NOW everywhere) because RTLD_NOW has an impact on the functionality and now using the same flags everywhere could cause subtle changes in functionality between platforms. 

BTW2. The workaround mentioned in message 2 would be new functionality (adding new symbols) and as such could probably not be added to 2.7.

I've added 3.3 and 3.4 to the list of versions because those also use RTLD_NOW and hence behave the same as 2.7 in this respect.

----------
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
versions: +Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20276>
_______________________________________


More information about the Python-bugs-list mailing list