2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "SECTIONS { }" > %t.script
4 # RUN: not ld.lld %t.o -script %t.script -o /dev/null 2>&1 | FileCheck %s
5 # CHECK: error: undefined symbol: _edata
6 # CHECK: >>> referenced by {{.*}}:(.text+0x0)
7 # CHECK: error: undefined symbol: _etext
8 # CHECK: >>> referenced by {{.*}}:(.text+0x8)
9 # CHECK: error: undefined symbol: _end
10 # CHECK: >>> referenced by {{.*}}:(.text+0x10)
12 .global _start,_end,_etext,_edata