svn commit: r217721 - releng/7.4/lib/csu/i386-elf
Konstantin Belousov
kib at FreeBSD.org
Sat Jan 22 19:15:40 UTC 2011
Author: kib
Date: Sat Jan 22 19:15:39 2011
New Revision: 217721
URL: http://svn.freebsd.org/changeset/base/217721
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/7.4/lib/csu/i386-elf/crt1_s.S
Directory Properties:
releng/7.4/lib/csu/ (props changed)
Modified: releng/7.4/lib/csu/i386-elf/crt1_s.S
==============================================================================
--- releng/7.4/lib/csu/i386-elf/crt1_s.S Sat Jan 22 17:49:37 2011 (r217720)
+++ releng/7.4/lib/csu/i386-elf/crt1_s.S Sat Jan 22 19:15:39 2011 (r217721)
@@ -35,6 +35,7 @@ _start: xorl %ebp,%ebp
movl %esp,%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