Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2011 10:47:36 +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-7@freebsd.org
Subject:   svn commit: r217471 - stable/7/lib/csu/i386-elf
Message-ID:  <201101161047.p0GAlatu060821@svn.freebsd.org>

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



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