svn commit: r217470 - stable/8/lib/csu/i386-elf

Konstantin Belousov kib at FreeBSD.org
Sun Jan 16 10:41:47 UTC 2011


Author: kib
Date: Sun Jan 16 10:41:47 2011
New Revision: 217470
URL: http://svn.freebsd.org/changeset/base/217470

Log:
  MFC r217383:
  The (%esp & 0xf) == 0 should be true before the call instruction is
  executed, for the properly aligned stack.

Modified:
  stable/8/lib/csu/i386-elf/crt1_s.S
Directory Properties:
  stable/8/lib/csu/   (props changed)

Modified: stable/8/lib/csu/i386-elf/crt1_s.S
==============================================================================
--- stable/8/lib/csu/i386-elf/crt1_s.S	Sun Jan 16 10:02:46 2011	(r217469)
+++ stable/8/lib/csu/i386-elf/crt1_s.S	Sun Jan 16 10:41:47 2011	(r217470)
@@ -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-stable-8 mailing list