xref: /llvm-project/lld/test/ELF/static-error.s (revision a01246b7a79fc9b3a5bee9e324181b405f0cb288)
1// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/shared.s -o %t.o
3// RUN: ld.lld -shared -o %t.so %t.o
4
5// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
6// RUN: ld.lld -o /dev/null %t.o %t.so
7// RUN: not ld.lld -o /dev/null -static %t.o %t.so 2>&1 | FileCheck %s
8
9// CHECK: attempted static link of dynamic object
10
11.global _start
12_start:
13  nop
14