old-cross-binutils/ld/testsuite/ld-arm/tls-longplt.s
Terry Guo 3cfdb7812c 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.
2014-11-21 11:54:39 +08:00

48 lines
676 B
ArmAsm

.syntax unified
.arch armv6t2
.text
text:
.arm
ldr r0,1f
2: blx udefw(tlscall)
nop
.p2align 2
1: .word udefw(tlsdesc) + (. - 2b)
.thumb
ldr r0,1f
2: blx udefw(tlscall)
nop
.p2align 2
1: .word udefw(tlsdesc) + (. - 2b + 1)
.section ".foo","ax"
foo:
.arm
ldr r0,1f
2: blx glob1(tlscall)
nop
.p2align 2
1: .word glob1(tlsdesc) + (. - 2b)
.arm
ldr r0,1f
2: blx udefw(tlscall)
nop
.p2align 2
1: .word udefw(tlsdesc) + (. - 2b)
.thumb
ldr r0,1f
2: blx udefw(tlscall)
nop
.p2align 2
1: .word udefw(tlsdesc) + (. - 2b + 1)
.section .tdata,"awT"
@ glob used by tls-longplt-lib
.type glob, %object
.globl glob
glob: .space 4
.globl udefw
.weak udefw