1 |
205 |
julius |
#source: tlsbin.s
|
2 |
|
|
#as:
|
3 |
|
|
#ld: -melf32xtensa
|
4 |
|
|
#objdump: -drj.text --start-address=0x400238
|
5 |
|
|
#target: xtensa*-*-linux*
|
6 |
|
|
|
7 |
|
|
.*: +file format elf32-xtensa-.e
|
8 |
|
|
|
9 |
|
|
Disassembly of section \.text:
|
10 |
|
|
|
11 |
|
|
0+400238 <_start>:
|
12 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+entry a1, 32
|
13 |
|
|
# GD -> IE because variable is not defined in executable
|
14 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a8
|
15 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a10, 4001ec <.*>
|
16 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a10, a10, a8
|
17 |
|
|
# GD -> IE because variable is not defined in executable where
|
18 |
|
|
# the variable is referenced through IE too
|
19 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a8
|
20 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a10, 4001f4 <.*>
|
21 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a10, a10, a8
|
22 |
|
|
# GD -> LE with global variable defined in executable
|
23 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a8
|
24 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a10, 4001fc <.*>
|
25 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a10, a10, a8
|
26 |
|
|
# GD -> LE with local variable defined in executable
|
27 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a8
|
28 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a10, 400204 <.*>
|
29 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a10, a10, a8
|
30 |
|
|
# GD -> LE with hidden variable defined in executable
|
31 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a8
|
32 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a10, 40020c <.*>
|
33 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a10, a10, a8
|
34 |
|
|
# LD -> LE
|
35 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+nop.*
|
36 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+nop.*
|
37 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a10
|
38 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a12, 400218 <.*>
|
39 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a12, a12, a10
|
40 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a13, 40021c <.*>
|
41 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a13, a13, a10
|
42 |
|
|
# LD -> LE against hidden variables
|
43 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a12, 400220 <.*>
|
44 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a12, a12, a10
|
45 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a13, 400224 <.*>
|
46 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a13, a13, a10
|
47 |
|
|
#
|
48 |
|
|
# IE against global var
|
49 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a2
|
50 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a3, 400228 <.*>
|
51 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a3, a3, a2
|
52 |
|
|
# IE -> LE against global var defined in exec
|
53 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a4
|
54 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a5, 40022c <.*>
|
55 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a5, a5, a4
|
56 |
|
|
# IE -> LE against local var
|
57 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a6
|
58 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a7, 400230 <.*>
|
59 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a7, a7, a6
|
60 |
|
|
# IE -> LE against hidden var
|
61 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+rur.threadptr a8
|
62 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+l32r a9, 400234 <.*>
|
63 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+add.* a9, a9, a8
|
64 |
|
|
#
|
65 |
|
|
[0-9a-f]+: [0-9a-f]+[ ]+retw.*
|