summaryrefslogtreecommitdiffstats
path: root/lib/csu/boot.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-08-07 02:30:04 +0000
committerguenther <guenther@openbsd.org>2016-08-07 02:30:04 +0000
commitdcf7e072f0b519e25b00bc36b107e1b650137a8c (patch)
tree92011c0ca99e7b50e8d0f2dc13ba1842a627c82e /lib/csu/boot.h
parentFlip the #ifdef logic: amd64, i386, and mips64 were the only static PIE (diff)
downloadwireguard-openbsd-dcf7e072f0b519e25b00bc36b107e1b650137a8c.tar.xz
wireguard-openbsd-dcf7e072f0b519e25b00bc36b107e1b650137a8c.zip
Psych: amd64 has been passing &_DYNAMIC to _dl_boot_bind() for 19 months
Diffstat (limited to 'lib/csu/boot.h')
-rw-r--r--lib/csu/boot.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csu/boot.h b/lib/csu/boot.h
index f892971133e..da699efb6d2 100644
--- a/lib/csu/boot.h
+++ b/lib/csu/boot.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.h,v 1.17 2016/08/07 02:28:12 guenther Exp $ */
+/* $OpenBSD: boot.h,v 1.18 2016/08/07 02:30:04 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -148,7 +148,7 @@ _dl_boot_bind(const long sp, long *dl_data, Elf_Dyn *dynamicp)
#if defined(__alpha__)
dynp = (Elf_Dyn *)((long)_DYNAMIC);
-#elif defined(__amd64__) || defined(__i386__) || defined(__mips64__)
+#elif defined(__i386__) || defined(__mips64__)
dynp = (Elf_Dyn *)((long)_DYNAMIC + loff);
#else
dynp = dynamicp;