2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/at7.s -o %t.o
3 # RUN: ld.lld %t.o --script %s -o %t
4 # RUN: llvm-readelf -S -l %t | FileCheck %s
7 RAM : ORIGIN = 0x20000000, LENGTH = 0x200
11 .text : { *(.text) } > RAM AT> RAM
12 .sec : { *(.sec) } > RAM
15 # Make sure the memory for the .text section is only reserved once.
16 # Previously, the location counter for both MemRegion and LMARegion
17 # was increased unconditionally.
20 # CHECK: Name Type Address Off
21 # CHECK: .text PROGBITS 0000000020000000 001000
22 # CHECK: .sec PROGBITS 0000000020000001 001001
24 # CHECK: Program Headers:
25 # CHECK: Type Offset VirtAddr PhysAddr
26 # CHECK-NEXT: LOAD 0x001000 0x0000000020000000 0x0000000020000000
27 # CHECK-NEXT: LOAD 0x001001 0x0000000020000001 0x0000000020000001