diff options
author | 2011-03-31 09:48:09 +0000 | |
---|---|---|
committer | 2011-03-31 09:48:09 +0000 | |
commit | 6fa7743b65d99ac34ea1a17aba40f521609df9b4 (patch) | |
tree | afe4db703752fd26a670c7078debd474e4bd1eae | |
parent | remove dead code from pppoe(8). (diff) | |
download | wireguard-openbsd-6fa7743b65d99ac34ea1a17aba40f521609df9b4.tar.xz wireguard-openbsd-6fa7743b65d99ac34ea1a17aba40f521609df9b4.zip |
Make sure everything run from .init and .fini sections gets a properly aligned
stack.
ok fgsch@
-rw-r--r-- | lib/csu/i386/md_init.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/csu/i386/md_init.h b/lib/csu/i386/md_init.h index 852d46cd407..ccd5bd376ef 100644 --- a/lib/csu/i386/md_init.h +++ b/lib/csu/i386/md_init.h @@ -1,4 +1,4 @@ -/* $OpenBSD: md_init.h,v 1.1 2004/01/08 14:59:15 drahn Exp $ */ +/* $OpenBSD: md_init.h,v 1.2 2011/03/31 09:48:09 kettenis Exp $ */ /*- * Copyright (c) 2001 Ross Harvey @@ -50,12 +50,13 @@ " .type " #entry_pt ",@function \n" \ #entry_pt": \n" \ " .align 16 \n" \ - " /* fall thru */ \n" \ + " subl $8,%esp \n" \ " .previous") #define MD_SECTION_EPILOGUE(sect) \ __asm ( \ ".section "#sect",\"ax\",@progbits \n" \ + " addl $8,%esp \n" \ " ret \n" \ " .previous") |