[LLD][COFF] Ignore DEBUG_S_XFGHASH_TYPE/VIRTUAL
[llvm-project.git] / lld / test / wasm / undefined-data.s
blobd63b667c4ea38b5c2185c9a189f0b92306d2468a
1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
2 # RUN: not wasm-ld -o %t.wasm %t.o 2>&1 | FileCheck %s -check-prefix=UNDEF
3 # RUN: wasm-ld --allow-undefined -o %t.wasm %t.o
4 # RUN: not wasm-ld --shared -o %t.wasm %t.o 2>&1 | FileCheck %s -check-prefix=SHARED
6 .globl _start
7 _start:
8 .functype _start () -> (i32)
9 i32.const 0
10 i32.load data_external
11 end_function
13 .size data_external, 4
15 # UNDEF: error: {{.*}}undefined-data.s.tmp.o: undefined symbol: data_external
16 # SHARED: error: {{.*}}undefined-data.s.tmp.o: relocation R_WASM_MEMORY_ADDR_LEB cannot be used against symbol `data_external`; recompile with -fPIC