mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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:
parent
9325262669
commit
ea40bc90e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217383
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue