mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
83194dc5b2
Dont emit Mapping symbols for sections that contain only data. Summary: Dont emit mapping symbols for sections that contain only data. Reviewers: rengolin, weimingz, kparzysz, t.p.northover, peter.smith Reviewed By: t.p.northover Patched by Shankar Easwaran <shankare@codeaurora.org> Subscribers: alekseyshl, t.p.northover, llvm-commits Differential Revision: https://reviews.llvm.org/D30724 llvm-svn: 299392
49 lines
2.3 KiB
ArmAsm
49 lines
2.3 KiB
ArmAsm
# 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
|
|
@ RUN: llvm-readobj -elf-output-style=GNU -symbols %t.o | FileCheck %s
|
|
|
|
# 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
|
|
@ RUN: llvm-readobj -elf-output-style=GNU -symbols %t.o | FileCheck %s
|
|
|
|
# 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
|
|
@ RUN: llvm-readobj -elf-output-style=GNU -symbols %t.o | FileCheck %s
|
|
|
|
# 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
|
|
@ RUN: llvm-readobj -elf-output-style=GNU -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
|
|
|
|
# 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
|
|
@ RUN: llvm-readobj -elf-output-style=GNU -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
|
|
|
|
# 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
|
|
@ RUN: llvm-readobj -elf-output-style=GNU -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
|
|
|
|
# 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
|
|
@ RUN: llvm-readobj -elf-output-style=GNU -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
|
|
|
|
# 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
|
|
@ RUN: llvm-readobj -elf-output-style=GNU -symbols %t.o | FileCheck %s -check-prefix=MIX
|
|
|
|
# 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
|
|
@ RUN: llvm-readobj -elf-output-style=GNU -symbols %t.o | FileCheck %s
|
|
|
|
#CHECK: $a
|
|
#CHECK: $d
|
|
|
|
#MIX: $a
|
|
#MIX: $a
|
|
#MIX: $d
|
|
#MIX: $d
|
|
|
|
#MAPPINGSYMBOLS-NOT: $a
|
|
#MAPPINGSYMBOLS-NOT: $d
|