From: guenther Date: Sun, 7 Aug 2016 02:57:19 +0000 (+0000) Subject: Flip the #ifdef logic: amd64, arm, i386, and mips64 are the only archs X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=51e8d0debbf4a091c66f58c8efadb75c1b8f4b23;p=openbsd Flip the #ifdef logic: amd64, arm, i386, and mips64 are the only archs using the #else case --- 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));