2017-04-04 05:50:04 +08:00
|
|
|
# Check section containing code and data with permission executable for the section.
|
|
|
|
@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/1.s
|
2019-05-01 13:27:20 +08:00
|
|
|
@ RUN: llvm-readelf -symbols %t.o | FileCheck %s
|
2017-04-04 05:50:04 +08:00
|
|
|
|
|
|
|
# Check section containing code and data with no permissions for the section.
|
|
|
|
@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/2.s
|
2019-05-01 13:27:20 +08:00
|
|
|
@ RUN: llvm-readelf -symbols %t.o | FileCheck %s
|
2017-04-04 05:50:04 +08:00
|
|
|
|
|
|
|
# Check section containing code and data with read/write permissions for the section.
|
|
|
|
@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/3.s
|
2019-05-01 13:27:20 +08:00
|
|
|
@ RUN: llvm-readelf -symbols %t.o | FileCheck %s
|
2017-04-04 05:50:04 +08:00
|
|
|
|
|
|
|
# Check section containing data with no permissions for the section.
|
|
|
|
@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/4.s
|
2019-05-01 13:27:20 +08:00
|
|
|
@ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
|
2017-04-04 05:50:04 +08:00
|
|
|
|
|
|
|
# Check section containing only data with read/write permissions for the section.
|
|
|
|
@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/5.s
|
2019-05-01 13:27:20 +08:00
|
|
|
@ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
|
2017-04-04 05:50:04 +08:00
|
|
|
|
|
|
|
# Check section containing the ident string with no permissions for the section.
|
|
|
|
@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/ident.s
|
2019-05-01 13:27:20 +08:00
|
|
|
@ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
|
2017-04-04 05:50:04 +08:00
|
|
|
|
|
|
|
# Check section containing the attributes with no permissions for the section.
|
|
|
|
@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/attr.s
|
2019-05-01 13:27:20 +08:00
|
|
|
@ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
|
2017-04-04 05:50:04 +08:00
|
|
|
|
|
|
|
# Check section containing code and data with no permissions for the section.
|
|
|
|
# data comes before code.
|
|
|
|
@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/6.s
|
2019-05-01 13:27:20 +08:00
|
|
|
@ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MIX
|
2017-04-04 05:50:04 +08:00
|
|
|
|
|
|
|
# Check section containing code and data with no permissions for the section.
|
|
|
|
# data comes before code.
|
|
|
|
@ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/7.s
|
2019-05-01 13:27:20 +08:00
|
|
|
@ RUN: llvm-readelf -symbols %t.o | FileCheck %s
|
2017-04-04 05:50:04 +08:00
|
|
|
|
|
|
|
#CHECK: $a
|
|
|
|
#CHECK: $d
|
|
|
|
|
|
|
|
#MIX: $a
|
|
|
|
#MIX: $a
|
|
|
|
#MIX: $d
|
|
|
|
#MIX: $d
|
|
|
|
|
|
|
|
#MAPPINGSYMBOLS-NOT: $a
|
|
|
|
#MAPPINGSYMBOLS-NOT: $d
|