From 02aadd679310c13107348c4f909791739fe69096 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 11 Jun 2026 04:54:27 +0300 Subject: [PATCH] builtin: match musl libgc data start types --- vlib/builtin/builtin_d_gcboehm_d_musl.c.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/builtin/builtin_d_gcboehm_d_musl.c.v b/vlib/builtin/builtin_d_gcboehm_d_musl.c.v index b0a340196..3b1bc32a0 100644 --- a/vlib/builtin/builtin_d_gcboehm_d_musl.c.v +++ b/vlib/builtin/builtin_d_gcboehm_d_musl.c.v @@ -3,13 +3,13 @@ module builtin $if tinyc { // Alpine's libgc references these as weak probes. TCC errors on the // unresolved weak symbols when linking against musl's libgc, so provide - // weak definitions for that environment. + // weak definitions with the same array type libgc declares. @[export: '__data_start'] @[markused; weak] - __global C.__data_start = int(0) + __global C.__data_start = [1]int{} @[export: 'data_start'] @[markused; weak] - __global C.data_start = int(0) + __global C.data_start = [1]int{} } -- 2.39.5