[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / va.s
blobc59cb794b585852504938ba25556005f7682864b
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: echo "SECTIONS {}" > %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
9 # CHECK-NEXT: 0 00000000 0000000000000000
10 # CHECK-NEXT: 1 .foo 00000004 0000000000000000
11 # CHECK-NEXT: 2 .boo 00000004 0000000000000004
12 # CHECK-NEXT: 3 .text 00000001 0000000000000008
14 .global _start
15 _start:
16 nop
18 .section .foo, "a"
19 foo:
20 .long 0
22 .section .boo, "a"
23 boo:
24 .long 0