After some debugging ( https://bugzilla.redhat.com/show_bug.cgi?id=480504 ) found out a use of RTLD_DEEPBIND will cause NULL `environ' in the loaded library. This is IMO a generally unexpected behavior and either `environ' should be an exception of being shared despite RTLD_DEEPBIND or at least the man page could make a note of it. Tested on: Fedora glibc-2.9-3.x86_64
Created attachment 3670 [details] Demo of the problem (deepbind-environ).
This works on architectures that don't use COPY relocations.