brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 63ffbb8 Raw
31 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/at6.s -o %t.o3# RUN: ld.lld %t.o --script %s -o %t4# RUN: llvm-readelf -S -l %t | FileCheck %s5 6MEMORY {7  FLASH : ORIGIN = 0x08000000, LENGTH = 0x1008  RAM   : ORIGIN = 0x20000000, LENGTH = 0x2009}10 11SECTIONS {12 .text : { *(.text) } > FLASH13 .sec1 : { *(.sec1) } > RAM14 .sec2 : { *(.sec2) } > RAM AT > FLASH15}16 17# Make sure we create a separate PT_LOAD entry for .sec2. Previously,18# it was added to the PT_LOAD entry of .sec119 20# CHECK: Name              Type            Address          Off21# CHECK: .text             PROGBITS        0000000008000000 00100022# CHECK: .sec1             PROGBITS        0000000020000000 00200023# CHECK: .sec2             PROGBITS        0000000020000004 00200424 25# CHECK: Program Headers:26# CHECK:      Type  Offset   VirtAddr           PhysAddr27# CHECK-NEXT: LOAD  0x001000 0x0000000008000000 0x000000000800000028# CHECK-NEXT: LOAD  0x002000 0x0000000020000000 0x000000002000000029# CHECK-NEXT: LOAD  0x002004 0x0000000020000004 0x000000000800000130# CHECK-NOT: LOAD31