4 #ld
: -EL tmpdir
/tlsbin
-0-dso
.so
6 #target
: sh
*-*-linux
* sh
*-*-netbsd
*
8 There are
[0-9]+ section headers
, starting at offset
0x
[0-9a
-f
]+:
11 \
[Nr\
] Name
+Type
+Addr
+Off
+Size
+ES Flg Lk Inf Al
12 \
[ 0\
] +NULL
+0+ 0+ 0+ 0+ +0 +0 +0
17 \
[ 5\
] \
.rela\
.dyn
+.*
18 \
[ 6\
] \
.rela\
.plt
+.*
20 \
[ 8\
] \
.text
+PROGBITS
+0+401000 .*
21 \
[ 9\
] \
.tdata
+PROGBITS
+0+413000 [0-9a
-f
]+ 0+018 00 WAT
0 0 4
22 \
[10\
] \
.tbss
+NOBITS
+0+413018 [0-9a
-f
]+ 0+010 00 WAT
0 0 1
23 \
[11\
] \
.dynamic
+DYNAMIC
+0+413018 .*
25 \
[[0-9a
-f
]+\
] \
.got
+PROGBITS
+0+414000 .*
26 \
[[0-9a
-f
]+\
] \
.sbss
+.*
27 \
[[0-9a
-f
]+\
] \
.bss
+.*
29 \
[[0-9a
-f
]+\
] \
.shstrtab
+.*
30 \
[[0-9a
-f
]+\
] \
.symtab
+.*
31 \
[[0-9a
-f
]+\
] \
.strtab
+.*
37 Elf file type
is EXEC \
(Executable file\
)
39 There are
[0-9]+ program headers
, starting at offset
[0-9]+
42 Type
+Offset
+VirtAddr
+PhysAddr
+FileSiz
+MemSiz
+Flg Align
45 .*Requesting program interpreter
.*
49 TLS
+0x
[0-9a
-f
]+ 0x
[0-9a
-f
]+ 0x
[0-9a
-f
]+ 0x0+18 0x0+28 R
+0x4
51 Section to Segment mapping
:
52 Segment Sections\
.\
.\
.
55 02 +\
.interp \
.hash \
.dynsym \
.dynstr \
.rela\
.dyn \
.rela\
.plt \
.plt \
.text
*
56 03 +\
.tdata \
.tbss \
.dynamic \
.got
*
57 04 +\
.tbss \
.dynamic
*
60 Relocation section
'\.rela\.dyn' at offset
0x
[0-9a
-f
]+ contains
4 entries
:
61 Offset
+Info
+Type
+Sym\
.Value
+Sym\
. Name \
+ Addend
62 0+414010 00000197 R_SH_TLS_TPOFF32
+0+ +sG3 \
+ 0
63 0+414014 00000397 R_SH_TLS_TPOFF32
+0+ +sG2 \
+ 0
64 0+414018 00000497 R_SH_TLS_TPOFF32
+0+ +sG4 \
+ 0
65 0+41401c
0000[0-9a
-f
]+97 R_SH_TLS_TPOFF32
+0+ +sG1 \
+ 0
67 Relocation section
'\.rela\.plt' at offset
0x
[0-9a
-f
]+ contains
1 entries
:
68 Offset
+Info
+Type
+Sym\
.Value
+Sym\
. Name \
+ Addend
69 0+41400c
000005a4 R_SH_JMP_SLOT
+[0-9a
-f
]+ +__tls_get_addr \
+ [0-9a
-f
]+
71 Symbol table
'\.dynsym' contains
[0-9]+ entries
:
72 +Num
: +Value
+Size Type
+Bind
+Vis
+Ndx Name
73 +0: 0+ +0 NOTYPE
+LOCAL
+DEFAULT UND
*
74 +1: 0+ +0 TLS
+GLOBAL DEFAULT UND sG3
75 +2: [0-9a
-f
]+ +0 OBJECT GLOBAL DEFAULT ABS _DYNAMIC
76 +3: 0+ +0 TLS
+GLOBAL DEFAULT UND sG2
77 +4: 0+ +0 TLS
+GLOBAL DEFAULT UND sG4
78 +5: [0-9a
-f
]+ +0 FUNC
+GLOBAL DEFAULT UND __tls_get_addr
80 +[0-9]+: 0+ +0 TLS
+GLOBAL DEFAULT UND sG1
83 Symbol table
'\.symtab' contains
[0-9]+ entries
:
84 +Num
: +Value
+Size Type
+Bind
+Vis
+Ndx Name
85 +0: 0+ +0 NOTYPE LOCAL DEFAULT UND
*
86 +1: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+1 *
87 +2: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+2 *
88 +3: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+3 *
89 +4: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+4 *
90 +5: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+5 *
91 +6: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+6 *
92 +7: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+7 *
93 +8: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+8 *
94 +9: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+9 *
95 +10: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+10 *
96 +11: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+11 *
97 +12: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+12 *
98 +13: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+13 *
99 +14: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+14 *
100 +15: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+15 *
101 +16: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+16 *
102 +17: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+17 *
103 +18: [0-9a
-f
]+ +0 SECTION LOCAL DEFAULT
+18 *
104 +[0-9]+: 00000008 +0 TLS
+LOCAL DEFAULT
+9 sl1
105 +[0-9]+: 0000000c
+0 TLS
+LOCAL DEFAULT
+9 sl2
106 +[0-9]+: 00000020 +0 TLS
+LOCAL DEFAULT
+10 bl1
107 +[0-9]+: 00000024 +0 TLS
+LOCAL DEFAULT
+10 bl2
108 +[0-9]+: 0+ +0 TLS
+GLOBAL DEFAULT UND sG3
109 +[0-9]+: [0-9a
-f
]+ +0 OBJECT GLOBAL DEFAULT ABS _DYNAMIC
110 +[0-9]+: 0+ +0 TLS
+GLOBAL DEFAULT UND sG2
111 +[0-9]+: 0+ +0 TLS
+GLOBAL DEFAULT UND sG4
112 +[0-9]+: [0-9a
-f
]+ +0 FUNC
+GLOBAL DEFAULT UND __tls_get_addr
113 +[0-9]+: 0+ +0 TLS
+GLOBAL DEFAULT
+9 sg1
114 +[0-9]+: 0+402000 +0 FUNC
+GLOBAL DEFAULT
+8 _start
116 +[0-9]+: 0+401000 +0 FUNC
+GLOBAL DEFAULT
+8 fn2
118 +[0-9]+: 00000004 +0 TLS
+GLOBAL DEFAULT
+9 sg2
119 +[0-9]+: 0+ +0 TLS
+GLOBAL DEFAULT UND sG1
120 +[0-9]+: 00000010 +0 TLS
+GLOBAL HIDDEN
+9 sh1
121 +[0-9]+: [0-9a
-f
]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
122 +[0-9]+: [0-9a
-f
]+ +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
123 +[0-9]+: [0-9a
-f
]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
124 +[0-9]+: 00000014 +0 TLS
+GLOBAL HIDDEN
+9 sh2
125 +[0-9]+: 0000001c
+0 TLS
+GLOBAL DEFAULT
+10 bg2
126 +[0-9]+: 00000018 +0 TLS
+GLOBAL DEFAULT
+10 bg1