summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/ld.so/dlfcn.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c
index 0881a10f45b..a5b410b14c0 100644
--- a/libexec/ld.so/dlfcn.c
+++ b/libexec/ld.so/dlfcn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dlfcn.c,v 1.112 2022/11/07 10:35:26 deraadt Exp $ */
+/* $OpenBSD: dlfcn.c,v 1.113 2022/11/09 18:44:11 deraadt Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -97,8 +97,10 @@ dlopen(const char *libname, int flags)
goto loaded;
}
- if (flags & RTLD_NODELETE)
+ if (flags & RTLD_NODELETE) {
object->obj_flags |= DF_1_NODELETE;
+ object->nodelete = 1;
+ }
_dl_link_dlopen(object);