1# REQUIRES: x86 2 3# RUN: echo '.section .foo,"a"; .quad 1' | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o 4# RUN: not ld.lld -o /dev/null %t.o --script %s 2>&1 | FileCheck %s 5# CHECK: error: section '.foo' will not fit in region 'flash': overflowed by 264 bytes 6 7MEMORY { 8 ram (rwx) : org = 0x1000, len = 0x300 9 flash (rwx) : org = 0x1000, len = 0x100 10} 11SECTIONS { 12 .foo : { 13 *(.foo) 14 . += 0x200; 15 } > ram AT>flash 16} 17