diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-01-24 01:43:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-01-24 01:43:33 +0000 |
commit | 10d2a600ccfc8970d1b938e3afbf316aeb4cad12 (patch) | |
tree | 251ad23d67dea866cdd8e54f28b6301be2af923c /lib | |
parent | c8780a23c0377abf0b3788f99af97773e6935376 (diff) |
Fix passing &_DYNAMIC to _dl_boot_bind; makes -static -pie work.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/csu/aarch64/md_init.h | 5 |
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" \ |