aboutsummaryrefslogtreecommitdiff
path: root/ld
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 /ld
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 'ld')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-arm/tls-longplt-lib.d4
-rw-r--r--ld/testsuite/ld-arm/tls-longplt-lib.s1
-rw-r--r--ld/testsuite/ld-arm/tls-longplt.d4
-rw-r--r--ld/testsuite/ld-arm/tls-longplt.s1
5 files changed, 13 insertions, 4 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index c1b97bb..0068a85 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,12 @@
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.
+
+2014-11-21 Terry Guo <terry.guo@arm.com>
+
* ld-arm/attr-merge-vfp-4-sp.s: New test source file.
* ld-arm/attr-merge-vfp-5-sp.s: Likewise.
* ld-arm/attr-merge-vfp-5.s: Likewise.
diff --git a/ld/testsuite/ld-arm/tls-longplt-lib.d b/ld/testsuite/ld-arm/tls-longplt-lib.d
index 2c81fbe..97aaad81 100644
--- a/ld/testsuite/ld-arm/tls-longplt-lib.d
+++ b/ld/testsuite/ld-arm/tls-longplt-lib.d
@@ -32,7 +32,7 @@ Disassembly of section .text:
81e4: 000080b4 .word 0x000080b4
81e8: 4801 ldr r0, \[pc, #4\] ; .*
81ea: f7ff efe0 blx 81ac <.*>
- 81ee: 46c0 nop ; .*
+ 81ee: bf00 nop
81f0: 000080a5 .word 0x000080a5
Disassembly of section .foo:
@@ -48,7 +48,7 @@ Disassembly of section .foo:
400101c: fc00f284 .word 0xfc00f284
4001020: 4801 ldr r0, \[pc, #4\] ; .*
4001022: f000 e806 blx 4001030 .*
- 4001026: 46c0 nop ; .*
+ 4001026: bf00 nop
4001028: fc00f26d .word 0xfc00f26d
400102c: 00000000 .word 0x00000000
diff --git a/ld/testsuite/ld-arm/tls-longplt-lib.s b/ld/testsuite/ld-arm/tls-longplt-lib.s
index e0650cb..8cdfe27 100644
--- a/ld/testsuite/ld-arm/tls-longplt-lib.s
+++ b/ld/testsuite/ld-arm/tls-longplt-lib.s
@@ -1,4 +1,5 @@
.syntax unified
+ .arch armv6t2
.text
text:
.arm
diff --git a/ld/testsuite/ld-arm/tls-longplt.d b/ld/testsuite/ld-arm/tls-longplt.d
index 175c561..afa6b06 100644
--- a/ld/testsuite/ld-arm/tls-longplt.d
+++ b/ld/testsuite/ld-arm/tls-longplt.d
@@ -32,7 +32,7 @@ Disassembly of section .text:
81e8: 000080d4 .word 0x000080d4
81ec: 4801 ldr r0, \[pc, #4\] ; .*
81ee: f7ff efe0 blx 81b0 .*
- 81f2: 46c0 nop ; .*
+ 81f2: bf00 nop
81f4: 000080c5 .word 0x000080c5
Disassembly of section .foo:
@@ -48,7 +48,7 @@ Disassembly of section .foo:
400101c: fc00f2a0 .word 0xfc00f2a0
4001020: 4801 ldr r0, \[pc, #4\] ; .*
4001022: f000 f809 bl 4001038 .*
- 4001026: 46c0 nop ; .*
+ 4001026: bf00 nop
4001028: fc00f291 .word 0xfc00f291
400102c: 00000000 .word 0x00000000
diff --git a/ld/testsuite/ld-arm/tls-longplt.s b/ld/testsuite/ld-arm/tls-longplt.s
index 42eea19..37d166f 100644
--- a/ld/testsuite/ld-arm/tls-longplt.s
+++ b/ld/testsuite/ld-arm/tls-longplt.s
@@ -1,4 +1,5 @@
.syntax unified
+ .arch armv6t2
.text
text:
.arm