brintos

brintos / llvm-project-archived public Read only

0
0
Text · 747 B · e478e94 Raw
22 lines · plain
1# REQUIRES: x862# RUN: echo '.section .text,"ax"; .quad 0' > %t.s3# RUN: echo '.section .data,"aw"; .quad 0' >> %t.s4# RUN: llvm-mc -filetype=obj -triple=x86_64 %t.s -o %t.o5# RUN: ld.lld %t.o --script %s -o %t6# RUN: llvm-readelf -l %t | FileCheck %s7 8# CHECK:      Type  Offset   VirtAddr           PhysAddr           FileSiz  MemSiz   Flg Align9# CHECK-NEXT: LOAD  0x001000 0x0000000000001000 0x0000000000001000 0x000008 0x000008 R E 0x100010# CHECK-NEXT: LOAD  0x002000 0x0000000000002000 0x0000000000001008 0x000008 0x000008 RW  0x100011 12MEMORY {13  FLASH (rx) : ORIGIN = 0x1000, LENGTH = 0x10014  RAM (rwx)  : ORIGIN = 0x2000, LENGTH = 0x10015}16 17SECTIONS {18 .text : { *(.text*) } > FLASH19 __etext = .;20 .data : AT (__etext) { *(.data*) } > RAM21}22