From 71623572da42d235128aedd3bf6aaa118f1aa247 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Mon, 22 Nov 2004 17:57:45 +0000 Subject: [PATCH] Align stack address for new threads. --- devel/linuxthreads/Makefile | 2 +- devel/linuxthreads/files/clone.S | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/devel/linuxthreads/Makefile b/devel/linuxthreads/Makefile index 1a9e5a51182e..c2e5a5b87f81 100644 --- a/devel/linuxthreads/Makefile +++ b/devel/linuxthreads/Makefile @@ -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 diff --git a/devel/linuxthreads/files/clone.S b/devel/linuxthreads/files/clone.S index bd4c7601e34b..9782fc52a3e5 100644 --- a/devel/linuxthreads/files/clone.S +++ b/devel/linuxthreads/files/clone.S @@ -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)