27 lines · plain
1// REQUIRES: aarch642 3// RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o4 5// RUN: echo "SECTIONS \6// RUN: { \7// RUN: .text : { *(.text) *(.rodata.foo) } \8// RUN: .rodata : { *(.rodata.bar) } \9// RUN: }" > %t.lds10// RUN: not ld.lld -T%t.lds %t.o -o /dev/null --execute-only 2>&1 | FileCheck %s11 12// RUN: echo "SECTIONS \13// RUN: { \14// RUN: .text : { *(.text) } \15// RUN: .rodata : { *(.rodata.bar) *(.rodata.foo) } \16// RUN: }" > %t.lds17// RUN: ld.lld -T%t.lds %t.o -o %t -execute-only 2>&118 19// CHECK: cannot place {{.*}}:(.rodata.foo) into .text: --execute-only does not support intermingling data and code20 21 br lr22 23.section .rodata.foo24.word 0x125.section .rodata.bar26.word 0x227