[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / edata-no-bss.s
blob751f490f3507867c6e8170c925df82ca1b547f02
1 # REQUIRES: x86
3 ## _edata points to the end of the last mapped initialized section.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
6 # RUN: ld.lld %t.o -o %t --gc-sections
7 # RUN: llvm-objdump -t --section-headers %t | FileCheck %s
9 # CHECK: .data 00000008 000000000020215c DATA
11 # CHECK: 0000000000202164 g .data 0000000000000000 _edata
13 .text
14 .globl _start
15 _start:
16 .long .data - .
18 .data
19 .quad 0
21 .globl _edata