summaryrefslogtreecommitdiff
path: root/libexec/ld.so
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2008-04-02 02:27:37 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2008-04-02 02:27:37 +0000
commit3bd69f1df94abeb557d494255ec66c6a5bf6a99d (patch)
tree2727ad55e55c2dd2e72f8b7d48adf5ebbb752032 /libexec/ld.so
parentd143bfeeeb2873b1987be6d184d00f119c0913d5 (diff)
Use the proper define for this address, not a incorrect (on 64bit) define.
ok kurt@
Diffstat (limited to 'libexec/ld.so')
-rw-r--r--libexec/ld.so/library.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/library.c b/libexec/ld.so/library.c
index 75aaf29bd4f..d860a003c0e 100644
--- a/libexec/ld.so/library.c
+++ b/libexec/ld.so/library.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: library.c,v 1.54 2006/05/08 20:34:36 deraadt Exp $ */
+/* $OpenBSD: library.c,v 1.55 2008/04/02 02:27:36 drahn Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
@@ -79,7 +79,7 @@ _dl_tryload_shlib(const char *libname, int type, int flags)
{
int libfile, i, align = _dl_pagesz - 1;
struct load_list *next_load, *load_list = NULL;
- Elf_Addr maxva = 0, minva = 0x7fffffff; /* XXX Correct for 64bit? */
+ Elf_Addr maxva = 0, minva = ELFDEFNNAME(NO_ADDR);
Elf_Addr libaddr, loff;
elf_object_t *object;
char hbuf[4096];