Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / linkerscript / edata-etext.s
blobc15cf4c865c0545abdf5e39d1453afc8551e78c5
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)
12 .global _start,_end,_etext,_edata
13 .text
14 _start:
15 .quad _edata + 0x1
16 .quad _etext + 0x1
17 .quad _end + 0x1
19 .data
20 .word 1
21 .bss
22 .align 4
23 .space 6