brintos

brintos / llvm-project-archived public Read only

0
0
Text · 549 B · 6a1beab Raw
27 lines · plain
1REQUIRES: x862 3## Check that we respect MEMORY commands in linker scripts without4## SECTIONS commands.5 6RUN: split-file %s %ts7RUN: llvm-mc -filetype=obj -triple=x86_64 %ts/asm.s -o %t.o8RUN: ld.lld -o %t --image-base=0 -T %ts/script %t.o9RUN: llvm-readelf -S %t | FileCheck %s10 11CHECK: .text             PROGBITS        000000000000100012CHECK: .data             PROGBITS        000000001000000013 14#--- script15 16MEMORY {17  flash (rx!w): org = 0x1000, len = 0x300018  ram (rwx): org = 0x10000000, len = 0x100019}20 21#--- asm.s22 23.text24.byte 125.data26.byte 227