2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: echo "MEMORY { ram2 (ax) : ORIGIN = 0x1000, LENGTH = 1K \
4 # RUN: ram1 (ax) : ORIGIN = 0x4000, LENGTH = 1K } \
5 # RUN: SECTIONS {}" > %t1.script
6 # RUN: ld.lld -o %t1 --script %t1.script %t
7 # RUN: llvm-objdump --section-headers %t1 | FileCheck %s
9 # RUN: echo "MEMORY { ram1 (ax) : ORIGIN = 0x1000, LENGTH = 1K \
10 # RUN: ram2 (ax) : ORIGIN = 0x4000, LENGTH = 1K } \
11 # RUN: SECTIONS {}" > %t2.script
12 # RUN: ld.lld -o %t2 --script %t2.script %t
13 # RUN: llvm-objdump --section-headers %t2 | FileCheck %s
15 ## Check we place .text into first defined memory region with appropriate flags.
17 # CHECK: Idx Name Size VMA
18 # CHECK: 0 00000000 0000000000000000
19 # CHECK: 1 .text 00000001 0000000000001000
21 .section .text,"ax",%progbits