2 #as
: --isa
=sh4a
-little
--fdpic
3 #ld
: -EL
-mshlelf_fd
-shared
4 #objdump
: -dsR
-j
.plt
-j
.text
-j
.got
5 #target
: sh
*-*-uclinux
*
7 .*:[ \t]+file format elf32
-sh
-fdpic
9 Contents of section \
.plt
:
10 [0-9a
-f
]+ 02d0ce
01 04702b41 ce0c0900 f0ffffff
[ \t]+.*
11 [0-9a
-f
]+ 00000000 c2602b40 c1530900
02d0ce
01[ \t]+.*
12 [0-9a
-f
]+ 04702b41 ce0c0900 f8ffffff
0c000000
[ \t]+.*
13 [0-9a
-f
]+ c2602b40 c1530900
[ \t]+.*
14 Contents of section \
.text
:
15 [0-9a
-f
]+ 00d001d1 c4ffffff dcffffff
[ \t]+.*
16 Contents of section \
.got
:
17 [0-9a
-f
]+ 3c020000
00000000 58020000 00000000[ \t]+.*
18 [0-9a
-f
]+ 00000000 00000000 00000000[ \t]+.*
20 Disassembly of section \
.plt
:
23 [0-9a
-f
]+:[ \t]+02 d0
[ \t]+mov\
.l
[ \t]+[0-9a
-f
]+ <foo
@plt\
+0xc>,r0
[ \t]+! fffffff0
24 [0-9a
-f
]+:[ \t]+ce
01[ \t]+mov\
.l
[ \t]+@\
(r0
,r12\
),r1
25 [0-9a
-f
]+:[ \t]+04 70[ \t]+add[ \t]+#
4,r0
26 [0-9a
-f
]+:[ \t]+2b 41[ \t]+jmp[ \t]+@r1
27 [0-9a
-f
]+:[ \t]+ce
0c
[ \t]+mov\
.l
[ \t]+@\
(r0
,r12\
),r12
28 [0-9a
-f
]+:[ \t]+09 00[ \t]+nop[ \t]+
29 [0-9a
-f
]+:[ \t]+f0 ff
[ \t]+fadd[ \t]+fr15
,fr15
30 [0-9a
-f
]+:[ \t]+ff ff
[ \t]+\
.word
0xffff
31 [0-9a
-f
]+:[ \t]+00 00[ \t]+\
.word
0x0000
32 [0-9a
-f
]+:[ \t]+00 00[ \t]+\
.word
0x0000
33 [0-9a
-f
]+:[ \t]+c2
60[ \t]+mov\
.l
[ \t]+@r12,r0
34 [0-9a
-f
]+:[ \t]+2b 40[ \t]+jmp[ \t]+@r0
35 [0-9a
-f
]+:[ \t]+c1
53[ \t]+mov\
.l
[ \t]+@\
(4,r12\
),r3
36 [0-9a
-f
]+:[ \t]+09 00[ \t]+nop[ \t]+
39 [0-9a
-f
]+:[ \t]+02 d0
[ \t]+mov\
.l
[ \t]+[0-9a
-f
]+ <bar
@plt\
+0xc>,r0
[ \t]+! fffffff8
40 [0-9a
-f
]+:[ \t]+ce
01[ \t]+mov\
.l
[ \t]+@\
(r0
,r12\
),r1
41 [0-9a
-f
]+:[ \t]+04 70[ \t]+add[ \t]+#
4,r0
42 [0-9a
-f
]+:[ \t]+2b 41[ \t]+jmp[ \t]+@r1
43 [0-9a
-f
]+:[ \t]+ce
0c
[ \t]+mov\
.l
[ \t]+@\
(r0
,r12\
),r12
44 [0-9a
-f
]+:[ \t]+09 00[ \t]+nop[ \t]+
45 [0-9a
-f
]+:[ \t]+f8 ff
[ \t]+fmov
[ \t]+@r15,fr15
46 [0-9a
-f
]+:[ \t]+ff ff
[ \t]+\
.word
0xffff
47 [0-9a
-f
]+:[ \t]+0c
00[ \t]+mov\
.b
[ \t]+@\
(r0
,r0\
),r0
48 [0-9a
-f
]+:[ \t]+00 00[ \t]+\
.word
0x0000
49 [0-9a
-f
]+:[ \t]+c2
60[ \t]+mov\
.l
[ \t]+@r12,r0
50 [0-9a
-f
]+:[ \t]+2b 40[ \t]+jmp[ \t]+@r0
51 [0-9a
-f
]+:[ \t]+c1
53[ \t]+mov\
.l
[ \t]+@\
(4,r12\
),r3
52 [0-9a
-f
]+:[ \t]+09 00[ \t]+nop[ \t]+
54 Disassembly of section \
.text
:
57 [0-9a
-f
]+:[ \t]+00 d0
[ \t]+mov\
.l
[ \t]+[0-9a
-f
]+ <f\
+0x4>,r0
[ \t]+! ffffffc4
58 [0-9a
-f
]+:[ \t]+01 d1
[ \t]+mov\
.l
[ \t]+[0-9a
-f
]+ <f\
+0x8>,r1
[ \t]+! ffffffdc
59 [0-9a
-f
]+:[ \t]+c4 ff
[ \t]+fcmp
/eq
[ \t]+fr12
,fr15
60 [0-9a
-f
]+:[ \t]+ff ff
[ \t]+\
.word
0xffff
61 [0-9a
-f
]+:[ \t]+dc ff
[ \t]+fmov
[ \t]+fr13
,fr15
62 [0-9a
-f
]+:[ \t]+ff ff
[ \t]+\
.word
0xffff
64 Disassembly of section \
.got
:
67 [ \t]+[0-9a
-f
]+:[ \t]+3c
02[ \t]+mov.b
[ \t]+@\
(r0
,r3\
),r2
68 [ \t]+[0-9a
-f
]+: R_SH_FUNCDESC_VALUE
[ \t]+foo
69 [ \t]+[0-9a
-f
]+:[ \t]+00 00[ \t]+\
.word
0x0000
70 [ \t]+[0-9a
-f
]+:[ \t]+00 00[ \t]+\
.word
0x0000
71 [ \t]+[0-9a
-f
]+:[ \t]+00 00[ \t]+\
.word
0x0000
72 [ \t]+[0-9a
-f
]+:[ \t]+58 02[ \t]+\
.word
0x0258
73 [ \t]+[0-9a
-f
]+: R_SH_FUNCDESC_VALUE
[ \t]+bar