From bcfc63dc590b073b0714c2b785e5694ed7c6f9ab Mon Sep 17 00:00:00 2001 From: kib Date: Sat, 22 Jan 2011 17:49:37 +0000 Subject: [PATCH] MFC r217383: The (%esp & 0xf) == 0 should be true before the call instruction is executed, for the properly aligned stack. Approved by: re (bz) git-svn-id: svn://svn.freebsd.org/base/releng/8.2@217720 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- lib/csu/i386-elf/crt1_s.S | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/csu/i386-elf/crt1_s.S b/lib/csu/i386-elf/crt1_s.S index 949d1641..e9082a07 100644 --- a/lib/csu/i386-elf/crt1_s.S +++ b/lib/csu/i386-elf/crt1_s.S @@ -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 -- 2.45.0