Align stack address for new threads.
This commit is contained in:
parent
1257aab50d
commit
71623572da
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122164
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= linuxthreads
|
||||
PORTVERSION= 2.2.3
|
||||
PORTREVISION= 15
|
||||
PORTREVISION= 16
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_GNU}
|
||||
MASTER_SITE_SUBDIR= glibc
|
||||
|
@ -44,6 +44,7 @@ ENTRY(_clone)
|
||||
movl 12(%ebp), %esi /* get stack addr */
|
||||
|
||||
subl $4, %esi
|
||||
andl $-16, %esi /* Align stack addr */
|
||||
movl 20(%ebp), %eax /* get __arg */
|
||||
movl %eax, (%esi)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user