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
|
.text
.p2align 4
.globl test1
.type test1, @function
test1:
.cfi_startproc
subq $8, %rsp
.cfi_def_cfa_offset 16
lea foo@TLSDESC(%rip), %rax
call *foo@TLSCALL(%rax)
addl %fs:0, %eax
cmpl %edi, (%eax)
jne .L5
movl %eax, %r8d
addq $8, %rsp
.cfi_remember_state
.cfi_def_cfa_offset 8
movq %r8, %rax
ret
.L5:
.cfi_restore_state
call abort@PLT
.cfi_endproc
.size test1, .-test1
.p2align 4
.globl test2
.type test2, @function
test2:
.cfi_startproc
subq $8, %rsp
.cfi_def_cfa_offset 16
lea bar@TLSDESC(%rip), %rax
call *bar@TLSCALL(%rax)
addl %fs:0, %eax
cmpl %edi, (%eax)
jne .L9
movl %eax, %r8d
addq $8, %rsp
.cfi_remember_state
.cfi_def_cfa_offset 8
movq %r8, %rax
ret
.L9:
.cfi_restore_state
call abort@PLT
.cfi_endproc
.size test2, .-test2
.section .tdata,"awT",@progbits
.align 4
.hidden foo
.globl foo
.type foo, @object
.size foo, 4
foo:
.long 30
.section .note.GNU-stack,"",@progbits
|