aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorTerry Guo <terry.guo@arm.com>2014-11-21 11:54:39 +0800
committerTerry Guo <terry.guo@arm.com>2014-11-21 11:54:39 +0800
commit3cfdb7812cda6ca610be8bf65ffaf5138dc0d379 (patch)
tree7dd6487568e4d0675a646378e7ce2ba16a39c7cf /gas/testsuite
parenta715796ba188e7ca9eac6e613439b63fe50a677d (diff)
downloadgdb-3cfdb7812cda6ca610be8bf65ffaf5138dc0d379.zip
gdb-3cfdb7812cda6ca610be8bf65ffaf5138dc0d379.tar.gz
gdb-3cfdb7812cda6ca610be8bf65ffaf5138dc0d379.tar.bz2
Calculate ARM arch attribute after relaxation
gas/ 2014-11-21 Terry Guo <terry.guo@arm.com> * config/tc-arm.c (md_assemble): Do not consider relaxation. (md_convert_frag): Test and set target arch attribute accordingly. (aeabi_set_attribute_string): Turn it into a global function. * config/tc-arm.h (md_post_relax_hook): Enable it for ARM target. (aeabi_set_public_attributes): Declare it. gas/testsuite/ 2014-11-21 Terry Guo <terry.guo@arm.com> * gas/arm/attr-arch-assumption.d: New file. * gas/arm/attr-arch-assumption.s: Likewise. ld/testsuite/ 2014-11-21 Terry Guo <terry.guo@arm.com> * ld-arm/tls-longplt-lib.s: Require ARMv6T2. * ld-arm/tls-longplt.s: Likewise. * ld-arm/tls-longplt-lib.d: Updated. * ld-arm/tls-longplt.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/arm/attr-arch-assumption.d11
-rw-r--r--gas/testsuite/gas/arm/attr-arch-assumption.s5
3 files changed, 21 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 59af872..00a2df0 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2014-11-21 Terry Guo <terry.guo@arm.com>
+ * gas/arm/attr-arch-assumption.d: New file.
+ * gas/arm/attr-arch-assumption.s: Likewise.
+
+2014-11-21 Terry Guo <terry.guo@arm.com>
+
* gas/arm/armv7e-m+fpv5-d16.s: New.
* gas/arm/armv7e-m+fpv5-d16.d: Likewise.
* gas/arm/armv7e-m+fpv5-sp-d16.s: Likewise.
diff --git a/gas/testsuite/gas/arm/attr-arch-assumption.d b/gas/testsuite/gas/arm/attr-arch-assumption.d
new file mode 100644
index 0000000..e5f60b0
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-arch-assumption.d
@@ -0,0 +1,11 @@
+# name: arch and isa entries in elf attribute section
+# source: attr-arch-assumption.s
+# as:
+# readelf: -A
+# This test is only valid on EABI based ports.
+# target: *-*-*eabi* *-*-nacl*
+
+Attribute Section: aeabi
+File Attributes
+ Tag_CPU_arch: v4T
+ Tag_THUMB_ISA_use: Thumb-1
diff --git a/gas/testsuite/gas/arm/attr-arch-assumption.s b/gas/testsuite/gas/arm/attr-arch-assumption.s
new file mode 100644
index 0000000..b5b9460
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-arch-assumption.s
@@ -0,0 +1,5 @@
+ .syntax unified
+ .thumb
+foo:
+ cmp r0, r1
+ beq foo