Commit Graph

2 Commits

Author SHA1 Message Date
Anoop C S
065319c787 internal/dlsym: Define _GNU_SOURCE for RTLD_DEFAULT
man dlsym(3) says the following:
. . .
The _GNU_SOURCE feature test macro must be defined in order to obtain
the definitions of RTLD_DEFAULT and RTLD_NEXT from <dlfcn.h>.
. . .

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2024-09-25 14:14:13 +00:00
Niels de Vos
0460442cba internal: add dlsym package for working with dynamically loaded symbols
The dlsym package provides LookupSymbol() which resolves a named symbol
(like "rbd_clone4") and returns a unsafe.Pointer to it. The caller is
expected to cast the symbol to function that can be called.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
2024-07-25 12:03:15 +00:00