brintos

brintos / llvm-project-archived public Read only

0
0
Text · 696 B · 5e2a416 Raw
17 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: not wasm-ld -o %t.wasm %t.o 2>&1 | FileCheck %s -check-prefix=UNDEF3# RUN: wasm-ld --allow-undefined -o %t.wasm %t.o4# RUN: not wasm-ld --experimental-pic -shared --unresolved-symbols=import-dynamic -o %t.wasm %t.o 2>&1 | FileCheck %s -check-prefix=SHARED5 6.globl  _start7_start:8  .functype _start () -> (i32)9  i32.const 010  i32.load  data_external11  end_function12 13.size data_external, 414 15# UNDEF: error: {{.*}}undefined-data.s.tmp.o: undefined symbol: data_external16# SHARED: error: {{.*}}undefined-data.s.tmp.o: relocation R_WASM_MEMORY_ADDR_LEB cannot be used against symbol `data_external`; recompile with -fPIC17