1# REQUIRES: x86 2 3# RUN: echo '.section .text,"ax"; .global _start; nop' > %t.s 4# RUN: echo '.section .data,"aw"; .quad 0' >> %t.s 5# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %t.s -o %t.o 6 7# RUN: echo "RAM2 (rwx): ORIGIN = 0x3000, LENGTH = 0x100" > %t.inc 8# RUN: ld.lld -o %t.elf --script %s %t.o -L %T 9# RUN: llvm-objdump -section-headers %t.elf | FileCheck %s 10# CHECK: .data 00000008 0000000000002000 DATA 11# CHECK: .data2 00000008 0000000000003000 DATA 12 13MEMORY { 14 ROM (rwx): ORIGIN = 0x1000, LENGTH = 0x100 15 RAM (rwx): ORIGIN = 0x2000, LENGTH = 0x100 16 INCLUDE "memory-include.test.tmp.inc" 17} 18 19SECTIONS { 20 .text : { *(.text*) } > ROM 21 .data : { *(.data*) } > RAM 22 .data2 : { QUAD(0) } > RAM2 23} 24