From 8183b5037cada9e00d0652081a93dc76ee5110a9 Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Fri, 1 Aug 2025 09:37:23 -0400 Subject: [PATCH 1/2] apply cgo fix for mobile https://github.com/golang/go/issues/46893 --- src/cmd/cgo/out.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/cgo/out.go b/src/cmd/cgo/out.go index 5329cb3cd2d224..e5429187547599 100644 --- a/src/cmd/cgo/out.go +++ b/src/cmd/cgo/out.go @@ -1039,7 +1039,7 @@ func (p *Package) writeExports(fgo2, fm, fgcc, fgcch io.Writer) { // string.h for memset, and is also robust to C++ // types with constructors. Both GCC and LLVM optimize // this into just zeroing _cgo_a. - fmt.Fprintf(fgcc, "\ttypedef %s %v _cgo_argtype;\n", ctype, p.packedAttribute()) + fmt.Fprintf(fgcc, "\ttypedef %s %v __attribute__((aligned(8))) _cgo_argtype;\n", ctype, p.packedAttribute()) fmt.Fprintf(fgcc, "\tstatic _cgo_argtype _cgo_zero;\n") fmt.Fprintf(fgcc, "\t_cgo_argtype _cgo_a = _cgo_zero;\n") if gccResult != "void" && (len(fntype.Results.List) > 1 || len(fntype.Results.List[0].Names) > 1) { From c8bf914484b960e8a2fa42284e03cfae7c91e38f Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Fri, 1 Aug 2025 10:49:21 -0400 Subject: [PATCH 2/2] use -kb version to tell its actually working --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 139c590eb87892..47f498c4aa0e26 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -go1.23.4 +go1.23.4-kb time 2024-11-27T20:27:20Z