summaryrefslogtreecommitdiff
path: root/share/man/man3/dlfcn.3
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2006-07-28 13:03:41 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2006-07-28 13:03:41 +0000
commit242f5dbf436cd952fe9b90df747a7d29f3dc6322 (patch)
treee0d7338a08502167216d7463ecff8bd158e68ec3 /share/man/man3/dlfcn.3
parent98ac6575d0cc6dee5067159f7d4db66c4c7c0182 (diff)
Explain the effect of the --export-dynamic link option on the visibility
of the executable's symbols as well as improve the visibility paragraph a bit. okay drahn@
Diffstat (limited to 'share/man/man3/dlfcn.3')
-rw-r--r--share/man/man3/dlfcn.313
1 files changed, 7 insertions, 6 deletions
diff --git a/share/man/man3/dlfcn.3 b/share/man/man3/dlfcn.3
index d448634e65c..5f0e5a21562 100644
--- a/share/man/man3/dlfcn.3
+++ b/share/man/man3/dlfcn.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dlfcn.3,v 1.18 2006/07/26 12:45:55 kurt Exp $
+.\" $OpenBSD: dlfcn.3,v 1.19 2006/07/28 13:03:40 kurt Exp $
.\" $NetBSD: dlfcn.3,v 1.3 1996/01/09 19:43:34 pk Exp $
.\"
.\" Copyright (c) 1995 Paul Kranenburg
@@ -163,16 +163,17 @@ is returned.
.Fn dlsym
may also be called with special
.Fa handles .
-In all cases
.Fn dlsym
respects symbol visibility as specified by the
.Fn dlopen
.Fa mode
parameter.
-The main executable and all shared objects loaded at program startup are
-globally visible.
-In addition, all shared objects that are a dependency of another object are
-always visible to the object that depends on them.
+However, the symbols of an object's dependencies are always visible to it.
+All shared objects loaded at program startup are globally visible.
+Only the symbols in the main executable that are referenced by a
+shared object at link time will be visible unless it has been linked
+with the --export-dynamic option where all of its symbols will be
+visible.
The following special
.Fa handles
may be used with