summaryrefslogtreecommitdiff
path: root/lib/csu/boot.h
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 02:44:01 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 02:44:01 +0000
commit4afa0461684e681f896472f08de948c28af537de (patch)
treef01f2032c7f48157c666fc1c87dd2e02fccfc76c /lib/csu/boot.h
parentd8149b67d42648fb0881ad725570e3b66e6df993 (diff)
Teach mips64 to pass &_DYNAMIC to _dl_boot_bind().
mips64be testing by deraadt@
Diffstat (limited to 'lib/csu/boot.h')
-rw-r--r--lib/csu/boot.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/csu/boot.h b/lib/csu/boot.h
index 878b15c2027..c0a541f76e6 100644
--- a/lib/csu/boot.h
+++ b/lib/csu/boot.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.h,v 1.20 2016/08/07 02:34:52 guenther Exp $ */
+/* $OpenBSD: boot.h,v 1.21 2016/08/07 02:44:00 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -145,12 +145,7 @@ _dl_boot_bind(const long sp, long *dl_data, Elf_Dyn *dynamicp)
* Scan the DYNAMIC section for the loader.
* Cache the data for easier access.
*/
-
-#if defined(__mips64__)
- dynp = (Elf_Dyn *)((long)_DYNAMIC + loff);
-#else
dynp = dynamicp;
-#endif
_dl_memset(&dynld, 0, sizeof(dynld));
while (dynp->d_tag != DT_NULL) {