summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/csu/aarch64/md_init.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/csu/aarch64/md_init.h b/lib/csu/aarch64/md_init.h
index 9eb2124f641..3c7e7b004e4 100644
--- a/lib/csu/aarch64/md_init.h
+++ b/lib/csu/aarch64/md_init.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: md_init.h,v 1.1 2017/01/11 13:59:02 patrick Exp $ */
+/* $OpenBSD: md_init.h,v 1.2 2017/01/24 01:43:32 kettenis Exp $ */
/*-
* Copyright (c) 2001 Ross Harvey
@@ -104,9 +104,10 @@
" mov x0, fp \n" \
" \n" \
" sub sp, sp, #8+8+(16*8) \n" \
- " add x1, sp, #8 \n" \
+ " add x1, sp, #4 \n" \
" \n" \
" adrp x2, :got:_DYNAMIC \n" \
+ " add x2, x2, #:lo12:_DYNAMIC \n" \
" \n" \
" bl _dl_boot_bind \n" \
" \n" \