brintos

brintos / llvm-project-archived public Read only

0
0
Text · 916 B · 6a1a435 Raw
29 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/at7.s -o %t.o3# RUN: ld.lld %t.o --script %s -o %t4# RUN: llvm-readelf -S -l %t | FileCheck %s5 6MEMORY {7  RAM    : ORIGIN = 0x20000000, LENGTH = 0x2008}9 10SECTIONS {11 .text : { *(.text) } > RAM AT> RAM12 .sec  : { *(.sec)  } > RAM13}14 15# Make sure the memory for the .text section is only reserved once.16# Previously, the location counter for both MemRegion and LMARegion17# was increased unconditionally.18 19 20# CHECK: Name              Type            Address          Off21# CHECK: .text             PROGBITS        0000000020000000 00100022# CHECK: .sec             PROGBITS        0000000020000001 00100123 24# CHECK: Program Headers:25# CHECK:      Type  Offset   VirtAddr           PhysAddr26# CHECK-NEXT: LOAD  0x001000 0x0000000020000000 0x000000002000000027# CHECK-NEXT: LOAD  0x001001 0x0000000020000001 0x000000002000000128# CHECK-NOT: LOAD29