| 1 | module 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 |