The (%esp & 0xf) == 0 should be true before the call instruction is

executed, for the properly aligned stack.

Reported and tested by:	rstone
Pointy hat to:	kib
MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2011-01-13 23:00:22 +00:00
parent 9325262669
commit ea40bc90e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217383

View file

@ -42,6 +42,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