about summary refs log tree commit diff
path: root/dlfcn/tst-rec-dlopen.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2015 for new files.Carlos O'Donell2015-01-211-2/+1
|
* Fix recursive dlopen.Carlos O'Donell2015-01-211-0/+144
The ability to recursively call dlopen is useful for malloc implementations that wish to load other dynamic modules that implement reentrant/AS-safe functions to use in their own implementation. Given that a user malloc implementation may be called by an ongoing dlopen to allocate memory the user malloc implementation interrupts dlopen and if it calls dlopen again that's a reentrant call. This patch fixes the issues with the ld.so.cache mapping and the _r_debug assertion which prevent this from working as expected. See: https://sourceware.org/ml/libc-alpha/2014-12/msg00446.html