• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2## Test how we display the upper half of the address space, which is commonly
3## used by operating system kernels.
4
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
7
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
14
15SECTIONS {
16  . = 0xffffffff80000000;
17  . += 0x100000;
18  _text = .;
19}
20