1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o 3 4# RUN: echo "SECTIONS { symbol2 = symbol; }" > %t2.script 5# RUN: not ld.lld -o /dev/null -T %t2.script %t.o 2>&1 \ 6# RUN: | FileCheck -check-prefix=ERR %s 7# ERR: {{.*}}.script:1: symbol not found: symbol 8 9.global _start 10_start: 11 nop 12