summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 02:57:20 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 02:57:20 +0000
commit1eb48fdce182f80a2d4b12cfb7d923ddad144f9e (patch)
tree37ee861402fa726bc4f3c4fa29a36cddbb96c487
parent4afa0461684e681f896472f08de948c28af537de (diff)
Flip the #ifdef logic: amd64, arm, i386, and mips64 are the only archs
using the #else case
-rw-r--r--libexec/ld.so/boot.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libexec/ld.so/boot.c b/libexec/ld.so/boot.c
index 8271e386717..89c42ebfb13 100644
--- a/libexec/ld.so/boot.c
+++ b/libexec/ld.so/boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.c,v 1.7 2016/07/15 09:25:47 guenther Exp $ */
+/* $OpenBSD: boot.c,v 1.8 2016/08/07 02:57:19 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -129,11 +129,10 @@ _dl_boot_bind(const long sp, long *dl_data, Elf_Dyn *dynamicp)
#if defined(__alpha__)
dynp = (Elf_Dyn *)((long)_DYNAMIC);
-#elif defined(__sparc__) || defined(__sparc64__) || defined(__powerpc__) || \
- defined(__hppa__) || defined(__sh__) || defined(__m88k__)
- dynp = dynamicp;
-#else
+#elif defined(__amd64__) || defined(__arm__) || defined(__i386__) || defined(__mips64__)
dynp = (Elf_Dyn *)((long)_DYNAMIC + loff);
+#else
+ dynp = dynamicp;
#endif
_dl_memset(&dynld, 0, sizeof(dynld));