diff options
| -rw-r--r-- | man3/dlopen.3 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/man3/dlopen.3 b/man3/dlopen.3 index 2a32690f71..2328831641 100644 --- a/man3/dlopen.3 +++ b/man3/dlopen.3 @@ -294,9 +294,16 @@ The function decrements the reference count on the dynamically loaded shared object referred to by .IR handle . -If the reference count drops to zero, +.PP +If the object's reference count drops to zero +and no symbols in this object are required by other objects, then the object is unloaded after first calling any destructors defined for the object. +(Symbols in this object might be required in another object +because this object was opened with the +.BR RTLD_GLOBAL +flag and one of its symbols satisfied a relocation in another object.) +.PP All shared objects that were automatically loaded when .BR dlopen () was invoked on the object referred to by |
