1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s 2# RUN: not wasm-ld %t.o -o %t.wasm 2>&1 | FileCheck %s 3 4.globl _start 5_start: 6 .functype _start () -> () 7 i32.const foo@TLSREL 8 i32.const bar@TLSREL 9 end_function 10 11.section .data,"",@ 12.globl foo 13foo: 14 .int32 0 15 .size foo, 4 16 17.section .bss,"",@ 18.globl bar 19bar: 20 .int32 0 21 .size bar, 4 22 23# CHECK: relocation R_WASM_MEMORY_ADDR_TLS_SLEB cannot be used against `foo` in non-TLS section: .data 24# CHECK: relocation R_WASM_MEMORY_ADDR_TLS_SLEB cannot be used against `bar` in non-TLS section: .bss 25