mirror of
https://github.com/yugr/Implib.so
synced 2026-06-08 18:33:41 +00:00
Clarify requirements for dlopen callback.
This commit is contained in:
@@ -101,7 +101,7 @@ void *mycallback(const char *lib_name) {
|
||||
$ implib-gen.py --dlopen-callback=mycallback libxyz.so
|
||||
```
|
||||
|
||||
(callback must have signature `void *(*)(const char *lib_name)` and return handle of loaded library).
|
||||
Callback must have signature `void *(*)(const char *lib_name)` and return handle of loaded library. Note that in some programs it may be called more than once and in parallel.
|
||||
|
||||
Normally symbols are located via `dlsym` function but this can be overriden with custom callback
|
||||
by using `--dlsym-callback` (which must have signature
|
||||
|
||||
Reference in New Issue
Block a user