49 lines · plain
1# Check section containing code and data with permission executable for the section.2@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/1.s3@ RUN: llvm-readelf -s %t.o | FileCheck %s4 5# Check section containing code and data with no permissions for the section.6@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/2.s7@ RUN: llvm-readelf -s %t.o | FileCheck %s8 9# Check section containing code and data with read/write permissions for the section.10@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/3.s11@ RUN: llvm-readelf -s %t.o | FileCheck %s12 13# Check section containing data with no permissions for the section.14@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/4.s15@ RUN: llvm-readelf -s %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS16 17# Check section containing only data with read/write permissions for the section.18@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/5.s19@ RUN: llvm-readelf -s %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS20 21# Check section containing the ident string with no permissions for the section.22@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/ident.s23@ RUN: llvm-readelf -s %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS24 25# Check section containing the attributes with no permissions for the section.26@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/attr.s27@ RUN: llvm-readelf -s %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS28 29# Check section containing code and data with no permissions for the section.30# data comes before code.31@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/6.s32@ RUN: llvm-readelf -s %t.o | FileCheck %s -check-prefix=MIX33 34# Check section containing code and data with no permissions for the section.35# data comes before code.36@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/7.s37@ RUN: llvm-readelf -s %t.o | FileCheck %s38 39#CHECK-DAG: $a40#CHECK-DAG: $d41 42#MIX: $d43#MIX: $a44#MIX: $d45#MIX: $a46 47#MAPPINGSYMBOLS-NOT: $a48#MAPPINGSYMBOLS-NOT: $d49