Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2011 10:41:47 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r217470 - stable/8/lib/csu/i386-elf
Message-ID:  <201101161041.p0GAfl60060616@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101161041.p0GAfl60060616>