1# REQUIRES: x86
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 %t 2>&1 | FileCheck %s
5# CHECK: error: {{.*}}:(.text+0x0): undefined symbol '_edata'
6# CHECK: error: {{.*}}:(.text+0x8): undefined symbol '_etext'
7# CHECK: error: {{.*}}:(.text+0x10): undefined symbol '_end'
8
9.global _start,_end,_etext,_edata
10.text
11_start:
12 .quad _edata + 0x1
13 .quad _etext + 0x1
14 .quad _end + 0x1
15
16.data
17  .word 1
18.bss
19  .align 4
20  .space 6
21