summaryrefslogtreecommitdiffstats
path: root/share/man/man3
diff options
context:
space:
mode:
authorkurt <kurt@openbsd.org>2006-07-28 13:03:40 +0000
committerkurt <kurt@openbsd.org>2006-07-28 13:03:40 +0000
commitd27f7bd1ce231f801aa82851ccb67b1e291e648a (patch)
tree2f77f9de291f49de15c4bca560e6089a2859cebb /share/man/man3
parentRemove $Log$ check from keyword expansion test, which is the only (diff)
downloadwireguard-openbsd-d27f7bd1ce231f801aa82851ccb67b1e291e648a.tar.xz
wireguard-openbsd-d27f7bd1ce231f801aa82851ccb67b1e291e648a.zip
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')
-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