summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>1999-02-17 02:41:04 +0000
committerjkoshy <jkoshy@FreeBSD.org>1999-02-17 02:41:04 +0000
commit4e3342680fb48a7291ce16c50b7a149b5df2ea6c (patch)
treeaa7c08affcf2d24079aa4e110654d72319a11776 /lib/libc
parent18f04af2d1e5980887dfb6b9efb1bdf9b60fbf69 (diff)
downloadFreeBSD-src-4e3342680fb48a7291ce16c50b7a149b5df2ea6c.zip
FreeBSD-src-4e3342680fb48a7291ce16c50b7a149b5df2ea6c.tar.gz
Add a note about ELF executables requiring to be linked with -export-dynamic
for dlsym() searches inside the executable to work.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/dlopen.38
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/gen/dlopen.3 b/lib/libc/gen/dlopen.3
index 7cdfbd7..9e848f9 100644
--- a/lib/libc/gen/dlopen.3
+++ b/lib/libc/gen/dlopen.3
@@ -219,6 +219,14 @@ The object-intrinsic functions
and
.Fn _fini
are called with no arguments, and are not expected to return values.
+.Sh NOTES
+ELF executables need to be linked
+using the
+.Fl export-dynamic
+option to
+.Xr ld 1
+for symbols defined in the executable to become visible to
+.Fn dlsym .
.Sh ERRORS
.Fn dlopen
and
OpenPOWER on IntegriCloud