1 #source: tls.s
2 #as: -a64
3 #ld: tmpdir/libtlslib.so
4 #objdump: -dr
5 #target: powerpc64*-*-*
6 
7 .*
8 
9 Disassembly of section \.text:
10 
11 .* <.*plt_call\.__tls_get_addr(|_opt)>:
12 .*	(e9 63 00 00|00 00 63 e9) 	ld      r11,0\(r3\)
13 .*	(e9 83 00 08|08 00 83 e9) 	ld      r12,8\(r3\)
14 .*	(7c 60 1b 78|78 1b 60 7c) 	mr      r0,r3
15 .*	(2c 2b 00 00|00 00 2b 2c) 	cmpdi   r11,0
16 .*	(7c 6c 6a 14|14 6a 6c 7c) 	add     r3,r12,r13
17 .*	(4d 82 00 20|20 00 82 4d) 	beqlr *
18 .*	(7c 03 03 78|78 03 03 7c) 	mr      r3,r0
19 .*	(7d 68 02 a6|a6 02 68 7d) 	mflr    r11
20 .*	(f9 61 00 20|20 00 61 f9) 	std     r11,32\(r1\)
21 .*	(f8 41 00 28|28 00 41 f8) 	std     r2,40\(r1\)
22 .*	(e9 82 80 48|48 80 82 e9) 	ld      r12,-32696\(r2\)
23 .*	(7d 89 03 a6|a6 03 89 7d) 	mtctr   r12
24 .*	(e8 42 80 50|50 80 42 e8) 	ld      r2,-32688\(r2\)
25 .*	(4e 80 04 21|21 04 80 4e) 	bctrl
26 .*	(e8 41 00 28|28 00 41 e8) 	ld      r2,40\(r1\)
27 .*	(e9 61 00 20|20 00 61 e9) 	ld      r11,32\(r1\)
28 .*	(7d 68 03 a6|a6 03 68 7d) 	mtlr    r11
29 .*	(4e 80 00 20|20 00 80 4e) 	blr
30 
31 .* <._start>:
32 .*	(e8 62 80 10|10 80 62 e8) 	ld      r3,-32752\(r2\)
33 .*	(60 00 00 00|00 00 00 60) 	nop
34 .*	(7c 63 6a 14|14 6a 63 7c) 	add     r3,r3,r13
35 .*	(38 62 80 18|18 80 62 38) 	addi    r3,r2,-32744
36 .*	(4b ff ff a9|a9 ff ff 4b) 	bl      .*
37 .*	(60 00 00 00|00 00 00 60) 	nop
38 .*	(3c 6d 00 00|00 00 6d 3c) 	addis   r3,r13,0
39 .*	(60 00 00 00|00 00 00 60) 	nop
40 .*	(38 63 90 38|38 90 63 38) 	addi    r3,r3,-28616
41 .*	(3c 6d 00 00|00 00 6d 3c) 	addis   r3,r13,0
42 .*	(60 00 00 00|00 00 00 60) 	nop
43 .*	(38 63 10 00|00 10 63 38) 	addi    r3,r3,4096
44 .*	(39 23 80 40|40 80 23 39) 	addi    r9,r3,-32704
45 .*	(3d 23 00 00|00 00 23 3d) 	addis   r9,r3,0
46 .*	(81 49 80 48|48 80 49 81) 	lwz     r10,-32696\(r9\)
47 .*	(e9 22 80 28|28 80 22 e9) 	ld      r9,-32728\(r2\)
48 .*	(7d 49 18 2a|2a 18 49 7d) 	ldx     r10,r9,r3
49 .*	(3d 2d 00 00|00 00 2d 3d) 	addis   r9,r13,0
50 .*	(a1 49 90 58|58 90 49 a1) 	lhz     r10,-28584\(r9\)
51 .*	(89 4d 90 60|60 90 4d 89) 	lbz     r10,-28576\(r13\)
52 .*	(3d 2d 00 00|00 00 2d 3d) 	addis   r9,r13,0
53 .*	(99 49 90 68|68 90 49 99) 	stb     r10,-28568\(r9\)
54 .*	(3c 6d 00 00|00 00 6d 3c) 	addis   r3,r13,0
55 .*	(60 00 00 00|00 00 00 60) 	nop
56 .*	(38 63 90 00|00 90 63 38) 	addi    r3,r3,-28672
57 .*	(3c 6d 00 00|00 00 6d 3c) 	addis   r3,r13,0
58 .*	(60 00 00 00|00 00 00 60) 	nop
59 .*	(38 63 10 00|00 10 63 38) 	addi    r3,r3,4096
60 .*	(f9 43 80 08|08 80 43 f9) 	std     r10,-32760\(r3\)
61 .*	(3d 23 00 00|00 00 23 3d) 	addis   r9,r3,0
62 .*	(91 49 80 10|10 80 49 91) 	stw     r10,-32752\(r9\)
63 .*	(e9 22 80 08|08 80 22 e9) 	ld      r9,-32760\(r2\)
64 .*	(7d 49 19 2a|2a 19 49 7d) 	stdx    r10,r9,r3
65 .*	(3d 2d 00 00|00 00 2d 3d) 	addis   r9,r13,0
66 .*	(b1 49 90 58|58 90 49 b1) 	sth     r10,-28584\(r9\)
67 .*	(e9 4d 90 2a|2a 90 4d e9) 	lwa     r10,-28632\(r13\)
68 .*	(3d 2d 00 00|00 00 2d 3d) 	addis   r9,r13,0
69 .*	(a9 49 90 30|30 90 49 a9) 	lha     r10,-28624\(r9\)
70 .*	(00 00 00 00|e0 02 01 00) .*
71 .*	(00 01 02 e0|00 00 00 00) .*
72 .* <__glink_PLTresolve>:
73 .*	(7d 88 02 a6|a6 02 88 7d) 	mflr    r12
74 .*	(42 9f 00 05|05 00 9f 42) 	bcl     20,4\*cr7\+so,.*
75 .*	(7d 68 02 a6|a6 02 68 7d) 	mflr    r11
76 .*	(e8 4b ff f0|f0 ff 4b e8) 	ld      r2,-16\(r11\)
77 .*	(7d 88 03 a6|a6 03 88 7d) 	mtlr    r12
78 .*	(7d 62 5a 14|14 5a 62 7d) 	add     r11,r2,r11
79 .*	(e9 8b 00 00|00 00 8b e9) 	ld      r12,0\(r11\)
80 .*	(e8 4b 00 08|08 00 4b e8) 	ld      r2,8\(r11\)
81 .*	(7d 89 03 a6|a6 03 89 7d) 	mtctr   r12
82 .*	(e9 6b 00 10|10 00 6b e9) 	ld      r11,16\(r11\)
83 .*	(4e 80 04 20|20 04 80 4e) 	bctr
84 .*	(60 00 00 00|00 00 00 60) 	nop
85 .*	(60 00 00 00|00 00 00 60) 	nop
86 .*	(60 00 00 00|00 00 00 60) 	nop
87 .* <__tls_get_addr_opt@plt>:
88 .*	(38 00 00 00|00 00 00 38) 	li      r0,0
89 .*	(4b ff ff c4|c4 ff ff 4b) 	b       .*
90