diff options
Diffstat (limited to 'libexec/ld.so')
-rw-r--r-- | libexec/ld.so/amd64/ldasm.S | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libexec/ld.so/amd64/ldasm.S b/libexec/ld.so/amd64/ldasm.S index 4e9ed24f1c5..0ffe3a600eb 100644 --- a/libexec/ld.so/amd64/ldasm.S +++ b/libexec/ld.so/amd64/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.7 2010/05/11 16:27:14 guenther Exp $ */ +/* $OpenBSD: ldasm.S,v 1.8 2011/07/23 21:41:19 kettenis Exp $ */ /* * Copyright (c) 2002,2004 Dale Rahn @@ -39,6 +39,11 @@ .type _dl_start,@function _dl_start: movq %rsp, %r12 # save stack pointer for _rtld + + subq $8, %rsp # align stack + andq $~15, %rsp + addq $8, %rsp + pushq %rbx # save ps_strings subq $DL_DATA_SIZE, %rsp # allocate dl_data |