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
16 +\
[ 4\
] \
.rela\
.dyn
.*
17 +\
[ 5\
] \
.rela\
.plt
.*
19 +\
[ 7\
] \
.text
+PROGBITS
.*
20 +\
[ 8\
] \
.tdata
+PROGBITS
.* 0+18 00 WAT
+0 +0 +4
21 +\
[ 9\
] \
.tbss
+NOBITS
.* 0+08 00 WAT
+0 +0 +1
23 +\
[[0-9a
-f
]+\
] \
.got
+PROGBITS
.*
25 +\
[[0-9a
-f
]+\
] \
.shstrtab
.*
26 +\
[[0-9a
-f
]+\
] \
.symtab
.*
27 +\
[[0-9a
-f
]+\
] \
.strtab
.*
31 Elf file type
is DYN \
(Shared object file\
)
32 Entry point
0x
[0-9a
-f
]+
33 There are
4 program headers
, starting at offset
[0-9]+
36 +Type
+Offset
+VirtAddr
+PhysAddr
+FileSiz
+MemSiz
+Flg Align
40 +TLS
.* 0x0+18 0x0+20 R
+0x4
42 Section to Segment mapping
:
43 +Segment Sections\
.\
.\
.
44 +00 +\
.hash \
.dynsym \
.dynstr \
.rela\
.dyn \
.rela\
.plt \
.plt \
.text
*
45 +01 +\
.tdata \
.dynamic \
.got
*
49 Relocation section
'\.rela\.dyn' at offset
0x
[0-9a
-f
]+ contains
10 entries
:
50 Offset
+Info
+Type
+Sym\
.Value
+Sym\
. Name \
+ Addend
51 [0-9a
-f
]+R_SH_TLS_DTPMOD32
+0
52 [0-9a
-f
]+R_SH_TLS_TPOFF32
+c
53 [0-9a
-f
]+R_SH_TLS_DTPMOD32
+0
54 [0-9a
-f
]+R_SH_TLS_DTPMOD32
+0
55 [0-9a
-f
]+R_SH_TLS_TPOFF32
+1c
56 [0-9a
-f
]+R_SH_TLS_DTPMOD32
+0
57 [0-9a
-f
]+R_SH_TLS_TPOFF32
+14
58 [0-9a
-f
]+R_SH_TLS_DTPMOD32
+0+ +sg1 \
+ 0
59 [0-9a
-f
]+R_SH_TLS_DTPOFF32
+0+ +sg1 \
+ 0
60 [0-9a
-f
]+R_SH_TLS_TPOFF32
+0+04 +sg2 \
+ 0
62 Relocation section
'\.rela\.plt' at offset
0x
[0-9a
-f
]+ contains
1 entries
:
63 Offset
+Info
+Type
+Sym\
.Value
+Sym\
. Name \
+ Addend
64 [0-9a
-f
]+R_SH_JMP_SLOT
[0-9a
-f
]+__tls_get_addr \
+ [0-9a
-f
]+
66 Symbol table
'\.dynsym' contains
[0-9]+ entries
:
67 +Num
: +Value
+Size
+Type
+Bind
+Vis
+Ndx
+Name
68 .* NOTYPE
+LOCAL
+DEFAULT
+UND
*
69 .* NOTYPE
+GLOBAL
+DEFAULT
+UND __tls_get_addr
70 .* TLS
+GLOBAL
+DEFAULT
+8 sg1
72 .* FUNC
+GLOBAL
+DEFAULT
+7 fn1
74 .* TLS
+GLOBAL
+DEFAULT
+8 sg2