brintos

brintos / llvm-project-archived public Read only

0
0
Text · 732 B · 63522eb Raw
30 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: not wasm-ld --shared-memory %t.o -o %t.wasm 2>&1 | FileCheck %s3 4.globl _start5_start:6  .functype _start () -> ()7  i32.const foo@TLSREL8  i32.const bar@TLSREL9  i32.const baz@TLSREL10  drop11  drop12  drop13  end_function14 15.section  .data,"",@16.globl  foo17foo:18  .int32  019  .size foo, 420 21.section  .bss,"",@22.globl  bar23bar:24  .int32  025  .size bar, 426 27# CHECK: relocation R_WASM_MEMORY_ADDR_TLS_SLEB cannot be used against `foo` in non-TLS section: .data28# CHECK: relocation R_WASM_MEMORY_ADDR_TLS_SLEB cannot be used against `bar` in non-TLS section: .bss29# CHECK: relocation R_WASM_MEMORY_ADDR_TLS_SLEB cannot be used against an undefined symbol `baz`30