diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-03-31 09:48:10 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-03-31 09:48:10 +0000 |
commit | 40d1e31818b82eae373c2f0ed10a196cc0f8d58a (patch) | |
tree | 84e110632dec978761fa143da1fa37ca7a5efcaf /lib/csu | |
parent | 10fdca655b1861adf6382ed56bd3eff2657ca59c (diff) |
Make sure everything run from .init and .fini sections gets a properly aligned
stack.
ok fgsch@
Diffstat (limited to 'lib/csu')
-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") |