summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2003-04-18 12:38:39 +0000
committerdrahn <drahn@openbsd.org>2003-04-18 12:38:39 +0000
commit46567c34d00d1559d5ac24ec8149f75c37ff0c51 (patch)
tree04f12b1ae42a63b276956a1c28b6e00496515b88
parentftp.linux.org.tr changed directory layout (diff)
downloadwireguard-openbsd-46567c34d00d1559d5ac24ec8149f75c37ff0c51.tar.xz
wireguard-openbsd-46567c34d00d1559d5ac24ec8149f75c37ff0c51.zip
Adjusting the start is wrong. The value returned by mquery() should be used
here. Fixes a bug with emacs21. tested by marc@ and others.
-rw-r--r--libexec/ld.so/library_mquery.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libexec/ld.so/library_mquery.c b/libexec/ld.so/library_mquery.c
index cd78f33d19a..6236d18d141 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.1 2003/04/17 03:40:45 drahn Exp $ */
+/* $OpenBSD: library_mquery.c,v 1.2 2003/04/18 12:38:39 drahn Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
@@ -464,14 +464,6 @@ retry:
}
ld->start = (void *)(LOFF + ld->moff);
- if (ld->start == 0) {
- /* we dont want the first > MAXDSIZ address
- * we want the first available address
- * skip the first 16 pages for page 0,
- * possible sigtramp and some exe.
- */
- ld->start = (void *)(long)(_dl_pagesz * 16);
- }
/*
* Magic here.