diff options
author | 2016-08-07 02:59:27 +0000 | |
---|---|---|
committer | 2016-08-07 02:59:27 +0000 | |
commit | 3714ee24c60779a59832c599d4f35df148d4b7c6 (patch) | |
tree | c3151604215576687ca46b116e4df70da57b56a0 | |
parent | Flip the #ifdef logic: amd64, arm, i386, and mips64 are the only archs (diff) | |
download | wireguard-openbsd-3714ee24c60779a59832c599d4f35df148d4b7c6.tar.xz wireguard-openbsd-3714ee24c60779a59832c599d4f35df148d4b7c6.zip |
hahahah: amd64 has been passing &_DYNAMIC to _dl_boot_bind() for
*149 months*
-rw-r--r-- | libexec/ld.so/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/boot.c b/libexec/ld.so/boot.c index 89c42ebfb13..3216bdffcc3 100644 --- a/libexec/ld.so/boot.c +++ b/libexec/ld.so/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.8 2016/08/07 02:57:19 guenther Exp $ */ +/* $OpenBSD: boot.c,v 1.9 2016/08/07 02:59:27 guenther Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -129,7 +129,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(__arm__) || defined(__i386__) || defined(__mips64__) +#elif defined(__arm__) || defined(__i386__) || defined(__mips64__) dynp = (Elf_Dyn *)((long)_DYNAMIC + loff); #else dynp = dynamicp; |