summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/dlfcn/dlfcn_stubs.c3
-rw-r--r--lib/libc/hidden/dlfcn.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/dlfcn/dlfcn_stubs.c b/lib/libc/dlfcn/dlfcn_stubs.c
index 6359d1815a8..f0a8093eda3 100644
--- a/lib/libc/dlfcn/dlfcn_stubs.c
+++ b/lib/libc/dlfcn/dlfcn_stubs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dlfcn_stubs.c,v 1.16 2020/10/09 16:01:48 otto Exp $ */
+/* $OpenBSD: dlfcn_stubs.c,v 1.17 2020/10/09 16:08:18 otto Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -103,7 +103,6 @@ dladdr(const void *addr, struct dl_info *info)
printf("Wrong dl symbols!\n");
return -1;
}
-DEF_WEAK(dladdr);
#if 0
/* Thread Local Storage argument structure */
diff --git a/lib/libc/hidden/dlfcn.h b/lib/libc/hidden/dlfcn.h
index e9c23a96438..566092e6119 100644
--- a/lib/libc/hidden/dlfcn.h
+++ b/lib/libc/hidden/dlfcn.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dlfcn.h,v 1.2 2020/10/09 16:01:48 otto Exp $ */
+/* $OpenBSD: dlfcn.h,v 1.3 2020/10/09 16:08:18 otto Exp $ */
/*
* Copyright (c) 2019 Philip Guenther <guenther@openbsd.org>
*
@@ -20,7 +20,7 @@
#include_next <dlfcn.h>
-PROTO_NORMAL(dladdr);
+PROTO_DEPRECATED(dladdr);
PROTO_DEPRECATED(dlclose);
PROTO_DEPRECATED(dlerror);
PROTO_DEPRECATED(dlopen);