brintos

brintos / llvm-project-archived public Read only

0
0
Text · 555 B · 0c2de0d Raw
23 lines · plain
1# REQUIRES: x862 3# RUN: echo ".section .foo,\"a\"" > %t.s4# RUN: echo ".quad 1" >> %t.s5# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %t.s -o %t.o6 7# RUN: not ld.lld -o /dev/null %t.o --script %s 2>&1 | FileCheck %s8 9# Check we are able to catch 'ram' overflow caused by BYTE command.10# CHECK: error: section '.foo' will not fit in region 'ram': overflowed by 1 bytes11 12MEMORY {13  text (rwx): org = 0x0, len = 0x100014  ram (rwx): org = 0x1000, len = 815}16SECTIONS {17  .text : { *(.text) } > text18  .foo : {19    *(.foo)20    BYTE(0x1)21  } > ram22}23