mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
3cfdb7812c
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.
53 lines
727 B
ArmAsm
53 lines
727 B
ArmAsm
.syntax unified
|
|
.arch armv6t2
|
|
.text
|
|
text:
|
|
.arm
|
|
ldr r0,1f
|
|
2: blx loc(tlscall)
|
|
nop
|
|
.p2align 2
|
|
1: .word loc(tlsdesc) + (. - 2b)
|
|
|
|
.thumb
|
|
ldr r0,1f
|
|
2: blx loc(tlscall)
|
|
nop
|
|
.p2align 2
|
|
1: .word loc(tlsdesc) + (. - 2b + 1)
|
|
|
|
.section ".foo","ax"
|
|
foo:
|
|
.arm
|
|
ldr r0,1f
|
|
2: blx loc(tlscall)
|
|
nop
|
|
.p2align 2
|
|
1: .word loc(tlsdesc) + (. - 2b)
|
|
|
|
.arm
|
|
ldr r0,1f
|
|
2: blx glob(tlscall)
|
|
nop
|
|
.p2align 2
|
|
1: .word glob(tlsdesc) + (. - 2b)
|
|
|
|
.thumb
|
|
ldr r0,1f
|
|
2: blx loc(tlscall)
|
|
nop
|
|
.p2align 2
|
|
1: .word loc(tlsdesc) + (. - 2b + 1)
|
|
|
|
.section .tdata,"awT"
|
|
.type loc, %object
|
|
loc: .space 4
|
|
|
|
@ glob1 and glob2 used by tls-longplt
|
|
.type glob1, %object
|
|
.globl glob1
|
|
glob1: .space 4
|
|
.type glob2, %object
|
|
.globl glob2
|
|
glob2: .space 4
|