svn commit: r217720 - releng/8.2/lib/csu/i386-elf
Konstantin Belousov
kib at FreeBSD.org
Sat Jan 22 17:49:37 UTC 2011
Author: kib
Date: Sat Jan 22 17:49:37 2011
New Revision: 217720
URL: http://svn.freebsd.org/changeset/base/217720
Log:
MFC r217383:
The (%esp & 0xf) == 0 should be true before the call instruction is
executed, for the properly aligned stack.
Approved by: re (bz)
Modified:
releng/8.2/lib/csu/i386-elf/crt1_s.S
Directory Properties:
releng/8.2/lib/csu/ (props changed)
Modified: releng/8.2/lib/csu/i386-elf/crt1_s.S
==============================================================================
--- releng/8.2/lib/csu/i386-elf/crt1_s.S Sat Jan 22 15:19:25 2011 (r217719)
+++ releng/8.2/lib/csu/i386-elf/crt1_s.S Sat Jan 22 17:49:37 2011 (r217720)
@@ -40,6 +40,7 @@ _start:
.cfi_def_cfa_register %ebp
andl $0xfffffff0,%esp # align stack
leal 8(%ebp),%eax
+ subl $4,%esp
pushl %eax # argv
pushl 4(%ebp) # argc
pushl %edx # rtld cleanup
More information about the svn-src-all
mailing list