mips64be testing by deraadt@
-/* $OpenBSD: boot.c,v 1.9 2016/08/07 02:59:27 guenther Exp $ */
+/* $OpenBSD: boot.c,v 1.10 2016/08/07 03:01:53 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
#if defined(__alpha__)
dynp = (Elf_Dyn *)((long)_DYNAMIC);
-#elif defined(__arm__) || defined(__i386__) || defined(__mips64__)
+#elif defined(__arm__) || defined(__i386__)
dynp = (Elf_Dyn *)((long)_DYNAMIC + loff);
#else
dynp = dynamicp;
-/* $OpenBSD: ldasm.S,v 1.19 2016/05/07 19:05:23 guenther Exp $ */
+/* $OpenBSD: ldasm.S,v 1.20 2016/08/07 03:01:53 guenther Exp $ */
/*
* Copyright (c) 1998-2002 Opsycon AB, Sweden.
PTR_ADDU a0, sp, FRAMESZ # Where stack info is.
PTR_ADDU a1, sp, 0 # Where fast AUX info will be.
+ LA a2, _DYNAMIC
+ PTR_ADDU a2, s0 # Where _DYNAMIC is
LA t9, _dl_boot_bind
PTR_ADDU t9, s0
jalr t9 # Relocate ourself.