summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-12-09 22:15:15 +0000
committerderaadt <deraadt@openbsd.org>2019-12-09 22:15:15 +0000
commite5659a9396b40b0569c0da834c8f76cac262ca9b (patch)
tree454aa9c60defc20d0621777f0562a750b2337335 /libexec
parentDo not count up nentries in send_response() when the entry was skipped (diff)
downloadwireguard-openbsd-e5659a9396b40b0569c0da834c8f76cac262ca9b.tar.xz
wireguard-openbsd-e5659a9396b40b0569c0da834c8f76cac262ca9b.zip
print addresses upon msyscall failure, for now
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.so/library.c5
-rw-r--r--libexec/ld.so/library_mquery.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/libexec/ld.so/library.c b/libexec/ld.so/library.c
index 204e631b201..8e29f4d5280 100644
--- a/libexec/ld.so/library.c
+++ b/libexec/ld.so/library.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: library.c,v 1.84 2019/11/29 06:34:44 deraadt Exp $ */
+/* $OpenBSD: library.c,v 1.85 2019/12/09 22:15:15 deraadt Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
@@ -325,7 +325,8 @@ _dl_tryload_shlib(const char *libname, int type, int flags)
if (soname != NULL &&
_dl_strncmp(soname, "libc.so.", 8) == 0) {
if (_dl_msyscall(exec_start, exec_size) == -1)
- _dl_printf("msyscall %lx %lx error\n");
+ _dl_printf("msyscall %lx %lx error\n",
+ exec_start, exec_size);
}
} else {
_dl_munmap((void *)libaddr, maxva - minva);
diff --git a/libexec/ld.so/library_mquery.c b/libexec/ld.so/library_mquery.c
index 9db2900dae1..a4ba0b044de 100644
--- a/libexec/ld.so/library_mquery.c
+++ b/libexec/ld.so/library_mquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: library_mquery.c,v 1.62 2019/11/30 23:06:02 deraadt Exp $ */
+/* $OpenBSD: library_mquery.c,v 1.63 2019/12/09 22:15:15 deraadt Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
@@ -331,7 +331,8 @@ retry:
if (soname != NULL &&
_dl_strncmp(soname, "libc.so.", 8) == 0) {
if (_dl_msyscall(exec_start, exec_size) == -1)
- _dl_printf("msyscall %lx %lx error\n");
+ _dl_printf("msyscall %lx %lx error\n",
+ exec_start, exec_size);
}
} else {
_dl_load_list_free(lowld);