Skip to content

Commit

Permalink
Don't specify RTLD_GLOBAL
Browse files Browse the repository at this point in the history
  • Loading branch information
qpernil committed Mar 2, 2022
1 parent d06e8e5 commit 8757742
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/ecdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ int ecdh_load_module(const char *module, FILE *out) {
}

if (strcmp(module, "-")) {
module_handle = dlopen(module, RTLD_NOW | RTLD_GLOBAL);
module_handle = dlopen(module, RTLD_NOW);
if (module_handle == 0) {
fprintf(out, "Can't open shared library '%s': %s\n", module, dlerror());
return CKR_ARGUMENTS_BAD;
Expand Down
2 changes: 1 addition & 1 deletion examples/p11_generate_rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) {
}

CK_C_GetFunctionList fn;
void *handle = dlopen(argv[1], RTLD_NOW | RTLD_GLOBAL);
void *handle = dlopen(argv[1], RTLD_NOW);
assert(handle != NULL);

*(void **) (&fn) = dlsym(handle, "C_GetFunctionList");
Expand Down
2 changes: 1 addition & 1 deletion pkcs11/tests/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "common.h"

void *open_module(const char *path) {
void *handle = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
void *handle = dlopen(path, RTLD_NOW);
assert(handle != NULL);
return handle;
}
Expand Down

0 comments on commit 8757742

Please sign in to comment.