v / vlib / builtin / builtin_d_gcboehm_d_musl.c.v
15 lines · 12 sloc · 398 bytes · 02aadd679310c13107348c4f909791739fe69096
Raw
1module builtin
2
3$if tinyc {
4 // Alpine's libgc references these as weak probes. TCC errors on the
5 // unresolved weak symbols when linking against musl's libgc, so provide
6 // weak definitions with the same array type libgc declares.
7
8 @[export: '__data_start']
9 @[markused; weak]
10 __global C.__data_start = [1]int{}
11
12 @[export: 'data_start']
13 @[markused; weak]
14 __global C.data_start = [1]int{}
15}
16