diff options
author | jkoshy <jkoshy@FreeBSD.org> | 1999-02-17 02:41:04 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 1999-02-17 02:41:04 +0000 |
commit | 4e3342680fb48a7291ce16c50b7a149b5df2ea6c (patch) | |
tree | aa7c08affcf2d24079aa4e110654d72319a11776 /lib/libc/gen/dlopen.3 | |
parent | 18f04af2d1e5980887dfb6b9efb1bdf9b60fbf69 (diff) | |
download | FreeBSD-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/gen/dlopen.3')
-rw-r--r-- | lib/libc/gen/dlopen.3 | 8 |
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 |