summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-04-18 12:38:40 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-04-18 12:38:40 +0000
commit995aba47911d0615b7f9bd6fc63d4141a91ea9ff (patch)
tree6be53c384e907d0c7aac1f6ae90a65c42b71738d /libexec
parent3def2a6541ce723f13ee3c4c2e5d8df6491c90b4 (diff)
Adjusting the start is wrong. The value returned by mquery() should be used
here. Fixes a bug with emacs21. tested by marc@ and others.
Diffstat (limited to 'libexec')
-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.