aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr22071.s
blob: 0e0b4e04887ff351d672461cb5f2291b3bbd3a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
	.text
	.p2align 4,,15
	.globl	get_ld
	.type	get_ld, @function
get_ld:
	subq	$8, %rsp
	leaq	_TLS_MODULE_BASE_@TLSDESC(%rip), %rax
	call	*_TLS_MODULE_BASE_@TLSCALL(%rax)
	addq	$8, %rsp
	addq	$ld@dtpoff, %rax
	addq	%fs:0, %rax
	ret
	.size	get_ld, .-get_ld
	.p2align 4,,15
	.globl	set_ld
	.type	set_ld, @function
set_ld:
	subq	$8, %rsp
	leaq	_TLS_MODULE_BASE_@TLSDESC(%rip), %rax
	call	*_TLS_MODULE_BASE_@TLSCALL(%rax)
	movl	%edi, %fs:ld@dtpoff(%rax)
	addq	$8, %rsp
	ret
	.size	set_ld, .-set_ld
	.p2align 4,,15
	.globl	test_ld
	.type	test_ld, @function
test_ld:
	subq	$8, %rsp
	leaq	_TLS_MODULE_BASE_@TLSDESC(%rip), %rax
	call	*_TLS_MODULE_BASE_@TLSCALL(%rax)
	cmpl	%edi, %fs:ld@dtpoff(%rax)
	sete	%al
	addq	$8, %rsp
	movzbl	%al, %eax
	ret
	.size	test_ld, .-test_ld
	.p2align 4,,15
	.globl	get_gd
	.type	get_gd, @function
get_gd:
	subq	$8, %rsp
	leaq	gd@TLSDESC(%rip), %rax
	call	*gd@TLSCALL(%rax)
	addq	$8, %rsp
	addq	%fs:0, %rax
	ret
	.size	get_gd, .-get_gd
	.p2align 4,,15
	.globl	set_gd
	.type	set_gd, @function
set_gd:
	subq	$8, %rsp
	leaq	gd@TLSDESC(%rip), %rax
	call	*gd@TLSCALL(%rax)
	movl	%edi, %fs:(%rax)
	addq	$8, %rsp
	ret
	.size	set_gd, .-set_gd
	.p2align 4,,15
	.globl	test_gd
	.type	test_gd, @function
test_gd:
	subq	$8, %rsp
	leaq	gd@TLSDESC(%rip), %rax
	call	*gd@TLSCALL(%rax)
	cmpl	%edi, %fs:(%rax)
	sete	%al
	addq	$8, %rsp
	movzbl	%al, %eax
	ret
	.size	test_gd, .-test_gd
	.section	.tbss,"awT",@nobits
	.align 4
	.type	ld, @object
	.size	ld, 4
ld:
	.zero	4