[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / openbsd-randomize.s
blob794e87b28122677c786e8182e9cc032b8b2bcc2f
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
3 # RUN: ld.lld %t -o %t.out
4 # RUN: llvm-readobj --program-headers %t.out | FileCheck %s
6 # CHECK: ProgramHeader {
7 # CHECK: Type: PT_OPENBSD_RANDOMIZE (0x65A3DBE6)
8 # CHECK-NEXT: Offset:
9 # CHECK-NEXT: VirtualAddress:
10 # CHECK-NEXT: PhysicalAddress:
11 # CHECK-NEXT: FileSize: 8
12 # CHECK-NEXT: MemSize: 8
13 # CHECK-NEXT: Flags [
14 # CHECK-NEXT: PF_R (0x4)
15 # CHECK-NEXT: ]
16 # CHECK-NEXT: Alignment: 1
17 # CHECK-NEXT: }
19 .section .openbsd.randomdata, "a"
20 .quad 0