[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / execute-only-mixed-data.s
blobe0a31afb9e90231e1a1231de65a1ea7d20f6993c
1 // REQUIRES: aarch64
3 // RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o
5 // RUN: echo "SECTIONS \
6 // RUN: { \
7 // RUN: .text : { *(.text) *(.rodata.foo) } \
8 // RUN: .rodata : { *(.rodata.bar) } \
9 // RUN: }" > %t.lds
10 // RUN: not ld.lld -T%t.lds %t.o -o /dev/null --execute-only 2>&1 | FileCheck %s
12 // RUN: echo "SECTIONS \
13 // RUN: { \
14 // RUN: .text : { *(.text) } \
15 // RUN: .rodata : { *(.rodata.bar) *(.rodata.foo) } \
16 // RUN: }" > %t.lds
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
21 br lr
23 .section .rodata.foo
24 .word 0x1
25 .section .rodata.bar
26 .word 0x2