svn commit: r217471 - stable/7/lib/csu/i386-elf
Konstantin Belousov
kib at FreeBSD.org
Sun Jan 16 10:47:36 UTC 2011
Author: kib
Date: Sun Jan 16 10:47:35 2011
New Revision: 217471
URL: http://svn.freebsd.org/changeset/base/217471
Log:
MFC r217383:
The (%esp & 0xf) == 0 should be true before the call instruction is
executed, for the properly aligned stack.
Modified:
stable/7/lib/csu/i386-elf/crt1_s.S
Directory Properties:
stable/7/lib/csu/ (props changed)
Modified: stable/7/lib/csu/i386-elf/crt1_s.S
==============================================================================
--- stable/7/lib/csu/i386-elf/crt1_s.S Sun Jan 16 10:41:47 2011 (r217470)
+++ stable/7/lib/csu/i386-elf/crt1_s.S Sun Jan 16 10:47:35 2011 (r217471)
@@ -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