Add a note about ELF executables requiring to be linked with -export-dynamic
for dlsym() searches inside the executable to work.
This commit is contained in:
parent
64cfdfc6fb
commit
f28529d798
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user