summaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 02:28:13 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 02:28:13 +0000
commit7860c80deb71b7426c9e02de58e0119e801710d2 (patch)
tree24ac99adf93c363ce7ad739a89857fbf6ff7ebc1 /lib/csu
parent51a70422e018c3f887072a92d3c21128eccd5764 (diff)
Flip the #ifdef logic: amd64, i386, and mips64 were the only static PIE
archs using the #else case
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/boot.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/csu/boot.h b/lib/csu/boot.h
index 087911ad380..f892971133e 100644
--- a/lib/csu/boot.h
+++ b/lib/csu/boot.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.h,v 1.16 2016/07/05 00:44:41 guenther Exp $ */
+/* $OpenBSD: boot.h,v 1.17 2016/08/07 02:28:12 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -148,11 +148,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__)
- dynp = dynamicp;
-#else
+#elif defined(__amd64__) || defined(__i386__) || defined(__mips64__)
dynp = (Elf_Dyn *)((long)_DYNAMIC + loff);
+#else
+ dynp = dynamicp;
#endif
_dl_memset(&dynld, 0, sizeof(dynld));