• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 /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)
11
12.global _start,_end,_etext,_edata
13.text
14_start:
15 .quad _edata + 0x1
16 .quad _etext + 0x1
17 .quad _end + 0x1
18
19.data
20  .word 1
21.bss
22  .align 4
23  .space 6
24