summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-09-28 18:16:56 +0000
committerderaadt <deraadt@openbsd.org>1996-09-28 18:16:56 +0000
commit47fd77bfefcf33ff431055ccdb8ecbf92f02c8b9 (patch)
tree2f268f95cd6bd4cfe5ec44af075c340b2ad00ae1
parentstrings for username are of size UT_NAMESIZE (diff)
downloadwireguard-openbsd-47fd77bfefcf33ff431055ccdb8ecbf92f02c8b9.tar.xz
wireguard-openbsd-47fd77bfefcf33ff431055ccdb8ecbf92f02c8b9.zip
mark dlopen() modules with RTLD_DL
-rw-r--r--gnu/usr.bin/ld/rtld/rtld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/usr.bin/ld/rtld/rtld.c b/gnu/usr.bin/ld/rtld/rtld.c
index 750c41b638c..1537f989d89 100644
--- a/gnu/usr.bin/ld/rtld/rtld.c
+++ b/gnu/usr.bin/ld/rtld/rtld.c
@@ -1451,6 +1451,7 @@ xprintf("%s: %s\n", name, strerror(errno));
if (load_subs(smp) != 0)
return NULL;
+ LM_PRIVATE(smp)->spd_flags |= RTLD_DL;
init_maps(smp);
return smp;
}