From 3714ee24c60779a59832c599d4f35df148d4b7c6 Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 7 Aug 2016 02:59:27 +0000 Subject: [PATCH] hahahah: amd64 has been passing &_DYNAMIC to _dl_boot_bind() for *149 months* --- libexec/ld.so/boot.c | 4 ++-- 1 file 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; -- 2.20.1