24 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3# RUN: echo "MEMORY { ram2 (ax) : ORIGIN = 0x1000, LENGTH = 1K \4# RUN: ram1 (ax) : ORIGIN = 0x4000, LENGTH = 1K } \5# RUN: SECTIONS {}" > %t1.script6# RUN: ld.lld -o %t1 --script %t1.script %t7# RUN: llvm-objdump --section-headers %t1 | FileCheck %s8 9# RUN: echo "MEMORY { ram1 (ax) : ORIGIN = 0x1000, LENGTH = 1K \10# RUN: ram2 (ax) : ORIGIN = 0x4000, LENGTH = 1K } \11# RUN: SECTIONS {}" > %t2.script12# RUN: ld.lld -o %t2 --script %t2.script %t13# RUN: llvm-objdump --section-headers %t2 | FileCheck %s14 15## Check we place .text into first defined memory region with appropriate flags.16# CHECK: Sections:17# CHECK: Idx Name Size VMA18# CHECK: 0 00000000 000000000000000019# CHECK: 1 .text 00000001 000000000000100020 21.section .text,"ax",%progbits22foo:23 nop24