[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / map-file-64bit.s
blob274a8c51518c2554ab9156b3e029eea2da93b0d4
1 # REQUIRES: x86
2 ## Test how we display the upper half of the address space, which is commonly
3 ## used by operating system kernels.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t.o
6 # RUN: ld.lld -M -T %s %t.o -o /dev/null | FileCheck %s --match-full-lines --strict-whitespace
8 ## . = 0xffffffff80000000; has a misaligned Size column.
9 # CHECK: VMA LMA Size Align Out In Symbol
10 # CHECK-NEXT: 0 0 ffffffff80000000 1 . = 0xffffffff80000000
11 # CHECK-NEXT:ffffffff80000000 0 100000 1 . += 0x100000
12 # CHECK-NEXT:ffffffff80100000 0 0 1 _text = .
13 # CHECK-NEXT:ffffffff80100000 ffffffff80100000 0 4 .text
15 SECTIONS {
16 . = 0xffffffff80000000;
17 . += 0x100000;
18 _text = .;