diff options
author | 2017-01-24 01:43:32 +0000 | |
---|---|---|
committer | 2017-01-24 01:43:32 +0000 | |
commit | 8a7435558acf8bc1d6f85f86c409ddd01e843c0c (patch) | |
tree | 5ee2f6d4625cf2586a84ef0dbf9bae7420eb61e5 | |
parent | ssl_sess_cert_free() checks for NULL, so do not bother doing it at the (diff) | |
download | wireguard-openbsd-8a7435558acf8bc1d6f85f86c409ddd01e843c0c.tar.xz wireguard-openbsd-8a7435558acf8bc1d6f85f86c409ddd01e843c0c.zip |
Fix passing &_DYNAMIC to _dl_boot_bind; makes -static -pie work.
-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" \ |