Calculate ARM arch attribute after relaxation
authorTerry Guo <terry.guo@arm.com>
Fri, 21 Nov 2014 03:54:39 +0000 (11:54 +0800)
committerTerry Guo <terry.guo@arm.com>
Fri, 21 Nov 2014 03:54:39 +0000 (11:54 +0800)
commit3cfdb7812cda6ca610be8bf65ffaf5138dc0d379
tree7dd6487568e4d0675a646378e7ce2ba16a39c7cf
parenta715796ba188e7ca9eac6e613439b63fe50a677d
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.
gas/ChangeLog
gas/config/tc-arm.c
gas/config/tc-arm.h
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/attr-arch-assumption.d [new file with mode: 0644]
gas/testsuite/gas/arm/attr-arch-assumption.s [new file with mode: 0644]
ld/testsuite/ChangeLog
ld/testsuite/ld-arm/tls-longplt-lib.d
ld/testsuite/ld-arm/tls-longplt-lib.s
ld/testsuite/ld-arm/tls-longplt.d
ld/testsuite/ld-arm/tls-longplt.s