[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / lld / test / wasm / static-error.s
blob3557506a5f07a253c1dcf75f3b378c744c297c37
1 // RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t.o
2 // RUN: wasm-ld --experimental-pic -shared -o %t.so %t.o
4 // RUN: wasm-ld --experimental-pic -pie -o /dev/null %t.o %t.so
5 // RUN: not wasm-ld -o /dev/null -static %t.o %t.so 2>&1 | FileCheck %s
7 // CHECK: attempted static link of dynamic object
9 .global _start
10 _start:
11 .functype _start () -> ()
12 end_function