[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / repsection-va.s
blobe92647a37e94ed355acb5d41062f6bd42d0324d9
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: echo "SECTIONS {.foo : {*(.foo.*)} }" > %t.script
5 # RUN: ld.lld -o %t1 --script %t.script %t
6 # RUN: llvm-objdump --section-headers %t1 | FileCheck %s
7 # CHECK: Sections:
8 # CHECK-NEXT: Idx Name Size VMA Type
9 # CHECK-NOT: .foo
10 # CHECK: .foo 00000008 {{.*}} DATA
11 # CHECK-NOT: .foo
14 .global _start
15 _start:
16 nop
18 .section .foo.1,"a"
19 foo1:
20 .long 0
22 .section .foo.2,"aw"
23 foo2:
24 .long 0