From: Paul Floyd Date: Fri, 5 Dec 2025 20:44:56 +0000 (+0100) Subject: FreeBSD: a bit of cleaning of client stack creation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7769d95480ec28e2ebcf475d04a5b495d5502e59;p=thirdparty%2Fvalgrind.git FreeBSD: a bit of cleaning of client stack creation Remove some commented out rounding Make stringbase point to a word boundary, not one before --- diff --git a/coregrind/m_initimg/initimg-freebsd.c b/coregrind/m_initimg/initimg-freebsd.c index 09f3dda84..cd127736c 100644 --- a/coregrind/m_initimg/initimg-freebsd.c +++ b/coregrind/m_initimg/initimg-freebsd.c @@ -473,17 +473,14 @@ static Addr setup_client_stack(const void* init_sp, break; case VKI_AT_CANARYLEN: canarylen = cauxv->u.a_val; - /*VG_ROUNDUP(stringsize, sizeof(Word));*/ stringsize += canarylen; break; case VKI_AT_PAGESIZESLEN: pagesizeslen = cauxv->u.a_val; - /*VG_ROUNDUP(stringsize, sizeof(Word));*/ stringsize += pagesizeslen; break; #if 0 case VKI_AT_TIMEKEEP: - /*VG_ROUNDUP(stringsize, sizeof(Word));*/ stringsize += sizeof(struct vki_vdso_timehands); break; #endif @@ -519,7 +516,7 @@ static Addr setup_client_stack(const void* init_sp, client_SP = VG_ROUNDDN(client_SP, 16); /* make stack 16 byte aligned */ /* base of the string table (aligned) */ - stringbase = strtab = (HChar *)clstack_end + stringbase = strtab = (HChar *)clstack_end + 1 - VG_ROUNDUP(stringsize, sizeof(int)); clstack_start = VG_PGROUNDDN(client_SP);