brintos

brintos / llvm-project-archived public Read only

0
0
Text · 441 B · d9a7446 Raw
17 lines · plain
1# REQUIRES: x862 3# RUN: echo '.section .foo,"a"; .quad 1' | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o4# RUN: not ld.lld -o /dev/null %t.o --script %s 2>&1 | FileCheck %s5# CHECK: error: section '.foo' will not fit in region 'flash': overflowed by 264 bytes6 7MEMORY {8  ram (rwx) : org = 0x1000, len = 0x3009  flash (rwx) : org = 0x1000, len = 0x10010}11SECTIONS {12  .foo : {13    *(.foo)14    . += 0x200;15  } > ram AT>flash16}17