3 // RUN
: llvm-mc
-filetype
=obj
-triple
=aarch64-linux-none
%s
-o
%t.o
5 // RUN
: echo
"SECTIONS \
7 // RUN: .text : { *(.text) *(.rodata.foo) } \
8 // RUN: .rodata : { *(.rodata.bar) } \
10 // RUN
: not ld.lld
-T%t.lds
%t.o
-o
/dev
/null
--execute-only
2>&1 | FileCheck
%s
12 // RUN
: echo
"SECTIONS \
14 // RUN: .text : { *(.text) } \
15 // RUN: .rodata : { *(.rodata.bar) *(.rodata.foo) } \
17 // RUN
: ld.lld
-T%t.lds
%t.o
-o
%t -execute-only
2>&1
19 // CHECK
: cannot place
{{.*}}:(.rodata.foo) into .text: --execute-only does not support intermingling data and code