summaryrefslogtreecommitdiff
path: root/lib/csu/mips64
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 02:44:01 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 02:44:01 +0000
commit4afa0461684e681f896472f08de948c28af537de (patch)
treef01f2032c7f48157c666fc1c87dd2e02fccfc76c /lib/csu/mips64
parentd8149b67d42648fb0881ad725570e3b66e6df993 (diff)
Teach mips64 to pass &_DYNAMIC to _dl_boot_bind().
mips64be testing by deraadt@
Diffstat (limited to 'lib/csu/mips64')
-rw-r--r--lib/csu/mips64/md_init.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/csu/mips64/md_init.h b/lib/csu/mips64/md_init.h
index c0c614cea22..30c78cf7baa 100644
--- a/lib/csu/mips64/md_init.h
+++ b/lib/csu/mips64/md_init.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: md_init.h,v 1.13 2016/03/20 02:32:39 guenther Exp $ */
+/* $OpenBSD: md_init.h,v 1.14 2016/08/07 02:44:00 guenther Exp $ */
/*-
* Copyright (c) 2001 Ross Harvey
@@ -124,6 +124,8 @@
" dsubu $s0, $ra, $s1 \n" \
" daddu $a0, $sp, 160 \n" \
" daddu $a1, $sp, 0 \n" \
+ " dla $a2, _DYNAMIC \n" \
+ " daddu $a2, $s0 \n" \
" dla $t9, _dl_boot_bind \n" \
" daddu $t9, $s0 \n" \
" jalr $t9 \n" \