aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTerry Guo <terry.guo@arm.com>2015-02-26 14:11:41 +0800
committerTerry Guo <terry.guo@arm.com>2015-02-26 14:11:41 +0800
commit99654aaf360c38a7bff69be8c175a78b83a7d263 (patch)
tree45ebe020964fc5a8d84bbc4ce6f57b5d86b7d0da /gas
parenta127494f2dcad834743e613be4cfea39511ad5ec (diff)
downloadgdb-99654aaf360c38a7bff69be8c175a78b83a7d263.zip
gdb-99654aaf360c38a7bff69be8c175a78b83a7d263.tar.gz
gdb-99654aaf360c38a7bff69be8c175a78b83a7d263.tar.bz2
[ARM]Update for Tag_ABI_HardFP_use per EABI doc
Updated how we merge and display this attribute per the latest EABI documents. bfd/ChangeLog * elf32-arm.c (elf32_arm_merge_eabi_attributes): Update how we merge Tag_ABI_HardFP_use. binutils/ChangeLog * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we display it. ld/testsuite/ChangeLog * ld-arm/attr-merge-3.attr: Remove Tag_ABI_HardFP_use. * ld-arm/attr-merge-vfp-10.d: Likewise. * ld-arm/attr-merge-vfp-10r.d: Likewise. * ld-arm/attr-merge-vfp-12.d: Likewise. * ld-arm/attr-merge-vfp-12r.d: Likewise. * ld-arm/attr-merge-vfp-13.d: Likewise. * ld-arm/attr-merge-vfp-13r.d: Likewise. * ld-arm/attr-merge-vfp-14.d: Likewise. * ld-arm/attr-merge-vfp-14r.d: Likewise. * ld-arm/attr-merge-vfp-6.d: Likewise. * ld-arm/attr-merge-vfp-6r.d: Likewise. * ld-arm/attr-merge-vfp-7.d: Likewise. * ld-arm/attr-merge-vfp-7r.d: Likewise. * ld-arm/attr-merge-vfp-8.d: Likewise. * ld-arm/attr-merge-vfp-8r.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/arm/attr-abi-hardfp-use-0.d14
-rw-r--r--gas/testsuite/gas/arm/attr-abi-hardfp-use-0.s3
-rw-r--r--gas/testsuite/gas/arm/attr-abi-hardfp-use-1.d15
-rw-r--r--gas/testsuite/gas/arm/attr-abi-hardfp-use-1.s3
-rw-r--r--gas/testsuite/gas/arm/attr-abi-hardfp-use-2.d15
-rw-r--r--gas/testsuite/gas/arm/attr-abi-hardfp-use-2.s3
-rw-r--r--gas/testsuite/gas/arm/attr-abi-hardfp-use-3.d15
-rw-r--r--gas/testsuite/gas/arm/attr-abi-hardfp-use-3.s3
8 files changed, 71 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arm/attr-abi-hardfp-use-0.d b/gas/testsuite/gas/arm/attr-abi-hardfp-use-0.d
new file mode 100644
index 0000000..bf7ec97
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-abi-hardfp-use-0.d
@@ -0,0 +1,14 @@
+# name: EABI attribute Tag_ABI_HardFP_use with value 0
+# source: attr-abi-hardfp-use-0.s
+# as:
+# readelf: -A
+# This test is only valid on EABI based ports.
+# target: *-*-*eabi* *-*-nacl*
+
+Attribute Section: aeabi
+File Attributes
+ Tag_CPU_name: "Cortex-M7"
+ Tag_CPU_arch: v7E-M
+ Tag_CPU_arch_profile: Microcontroller
+ Tag_THUMB_ISA_use: Thumb-2
+ Tag_FP_arch: FPv5/FP-D16 for ARMv8
diff --git a/gas/testsuite/gas/arm/attr-abi-hardfp-use-0.s b/gas/testsuite/gas/arm/attr-abi-hardfp-use-0.s
new file mode 100644
index 0000000..649d0fe
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-abi-hardfp-use-0.s
@@ -0,0 +1,3 @@
+.cpu cortex-m7
+.fpu fpv5-d16
+.eabi_attribute 27, 0
diff --git a/gas/testsuite/gas/arm/attr-abi-hardfp-use-1.d b/gas/testsuite/gas/arm/attr-abi-hardfp-use-1.d
new file mode 100644
index 0000000..712bd6c
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-abi-hardfp-use-1.d
@@ -0,0 +1,15 @@
+# name: EABI attribute Tag_ABI_HardFP_use with value 1
+# source: attr-abi-hardfp-use-1.s
+# as:
+# readelf: -A
+# This test is only valid on EABI based ports.
+# target: *-*-*eabi* *-*-nacl*
+
+Attribute Section: aeabi
+File Attributes
+ Tag_CPU_name: "Cortex-M7"
+ Tag_CPU_arch: v7E-M
+ Tag_CPU_arch_profile: Microcontroller
+ Tag_THUMB_ISA_use: Thumb-2
+ Tag_FP_arch: FPv5/FP-D16 for ARMv8
+ Tag_ABI_HardFP_use: SP only
diff --git a/gas/testsuite/gas/arm/attr-abi-hardfp-use-1.s b/gas/testsuite/gas/arm/attr-abi-hardfp-use-1.s
new file mode 100644
index 0000000..adc7049
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-abi-hardfp-use-1.s
@@ -0,0 +1,3 @@
+.cpu cortex-m7
+.fpu fpv5-sp-d16
+.eabi_attribute 27, 1
diff --git a/gas/testsuite/gas/arm/attr-abi-hardfp-use-2.d b/gas/testsuite/gas/arm/attr-abi-hardfp-use-2.d
new file mode 100644
index 0000000..a06c8be
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-abi-hardfp-use-2.d
@@ -0,0 +1,15 @@
+# name: EABI attribute Tag_ABI_HardFP_use with value 2
+# source: attr-abi-hardfp-use-2.s
+# as:
+# readelf: -A
+# This test is only valid on EABI based ports.
+# target: *-*-*eabi* *-*-nacl*
+
+Attribute Section: aeabi
+File Attributes
+ Tag_CPU_name: "Cortex-M7"
+ Tag_CPU_arch: v7E-M
+ Tag_CPU_arch_profile: Microcontroller
+ Tag_THUMB_ISA_use: Thumb-2
+ Tag_FP_arch: FPv5/FP-D16 for ARMv8
+ Tag_ABI_HardFP_use: Reserved
diff --git a/gas/testsuite/gas/arm/attr-abi-hardfp-use-2.s b/gas/testsuite/gas/arm/attr-abi-hardfp-use-2.s
new file mode 100644
index 0000000..6723514
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-abi-hardfp-use-2.s
@@ -0,0 +1,3 @@
+.cpu cortex-m7
+.fpu fpv5-d16
+.eabi_attribute 27, 2
diff --git a/gas/testsuite/gas/arm/attr-abi-hardfp-use-3.d b/gas/testsuite/gas/arm/attr-abi-hardfp-use-3.d
new file mode 100644
index 0000000..3e42741
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-abi-hardfp-use-3.d
@@ -0,0 +1,15 @@
+# name: EABI attribute Tag_ABI_HardFP_use with value 3
+# source: attr-abi-hardfp-use-3.s
+# as:
+# readelf: -A
+# This test is only valid on EABI based ports.
+# target: *-*-*eabi* *-*-nacl*
+
+Attribute Section: aeabi
+File Attributes
+ Tag_CPU_name: "Cortex-M7"
+ Tag_CPU_arch: v7E-M
+ Tag_CPU_arch_profile: Microcontroller
+ Tag_THUMB_ISA_use: Thumb-2
+ Tag_FP_arch: FPv5/FP-D16 for ARMv8
+ Tag_ABI_HardFP_use: Deprecated
diff --git a/gas/testsuite/gas/arm/attr-abi-hardfp-use-3.s b/gas/testsuite/gas/arm/attr-abi-hardfp-use-3.s
new file mode 100644
index 0000000..55ed6be
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-abi-hardfp-use-3.s
@@ -0,0 +1,3 @@
+.cpu cortex-m7
+.fpu fpv5-d16
+.eabi_attribute 27, 3