brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 8a3d56d Raw
45 lines · plain
1// REQUIRES: aarch642 3// RUN: rm -rf %t && mkdir %t && cd %t4// RUN: llvm-mc --triple=aarch64 --filetype=obj %s -o a.o5 6// RUN: ld.lld --defsym absolute=0xf0000000 -z execute-only-report=none --fatal-warnings a.o7 8// RUN: ld.lld --defsym absolute=0xf0000000 -z execute-only-report=warning a.o 2>&1 | \9// RUN:     FileCheck --check-prefix=WARNING %s10// RUN: ld.lld --defsym absolute=0xf0000000 --execute-only -z execute-only-report=warning a.o 2>&1 | \11// RUN:     FileCheck --check-prefix=WARNING %s12 13// WARNING-NOT: warning: -z execute-only-report: a.o:(.text) does not have SHF_AARCH64_PURECODE flag set14// WARNING-NOT: warning: -z execute-only-report: a.o:(.text.foo) does not have SHF_AARCH64_PURECODE flag set15// WARNING: warning: -z execute-only-report: a.o:(.text.bar) does not have SHF_AARCH64_PURECODE flag set16// WARNING-NOT: warning: -z execute-only-report: <internal>:({{.*}}) does not have SHF_AARCH64_PURECODE flag set17 18// RUN: not ld.lld --defsym absolute=0xf0000000 -z execute-only-report=error a.o 2>&1 | \19// RUN:     FileCheck --check-prefix=ERROR %s20// RUN: not ld.lld --defsym absolute=0xf0000000 --execute-only -z execute-only-report=error a.o 2>&1 | \21// RUN:     FileCheck --check-prefix=ERROR %s22 23// ERROR-NOT: error: -z execute-only-report: a.o:(.text) does not have SHF_AARCH64_PURECODE flag set24// ERROR-NOT: error: -z execute-only-report: a.o:(.text.foo) does not have SHF_AARCH64_PURECODE flag set25// ERROR: error: -z execute-only-report: a.o:(.text.bar) does not have SHF_AARCH64_PURECODE flag set26// ERROR-NOT: error: -z execute-only-report: <internal>:({{.*}}) does not have SHF_AARCH64_PURECODE flag set27 28.section .text,"axy",@progbits,unique,029.globl _start30_start:31  bl foo32  bl bar33  bl absolute34  ret35 36.section .text.foo,"axy",@progbits,unique,037.globl foo38foo:39  ret40 41.section .text.bar,"ax",@progbits,unique,042.globl bar43bar:44  ret45