1; We manually create these here if we're not linking against
2; the CRT which would usually provide these.
3
4target triple = "x86_64-pc-windows-msvc"
5
6%IMAGE_TLS_DIRECTORY64 = type {
7    i64,    ; StartAddressOfRawData
8    i64,    ; EndAddressOfRawData
9    i64,    ; AddressOfIndex
10    i64,    ; AddressOfCallBacks
11    i32,    ; SizeOfZeroFill
12    i32     ; Characteristics
13}
14
15@_tls_start = global i8 zeroinitializer, section ".tls"
16@_tls_end = global i8 zeroinitializer, section ".tls$ZZZ"
17@_tls_index = global i64 0
18
19@_tls_used = global %IMAGE_TLS_DIRECTORY64 {
20    i64 ptrtoint (i8* @_tls_start to i64),
21    i64 ptrtoint (i8* @_tls_end to i64),
22    i64 ptrtoint (i64* @_tls_index to i64),
23    i64 0,
24    i32 0,
25    i32 0
26}, section ".rdata$T"