[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / input-sec-dup.s
blob8ac362b45377d720cd6be9937a9e80e61a26c7b7
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: echo "SECTIONS {.foo : { *(.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
9 # CHECK-NEXT: 0 00000000
10 # CHECK-NEXT: 1 .foo 00000004
11 # CHECK-NEXT: 2 .text 00000001
13 .global _start
14 _start:
15 nop
17 .section .foo,"a"
18 .long 0