repo.or.cz
/
binutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git]
/
ld
/
testsuite
/
ld-arm
/
ifunc-2.s
blob
8834fbc0acea5f9af2d3ef05da332f1df4114dc4
1
.syntax unified
2
.arch armv6t2
3
4
.macro define,name,type
5
.type \name,%gnu_indirect_function
6
\t
ype
7
\n
ame
:
8
mov pc
,
lr
9
.size \name,.-\name
10
.endm
11
12
.macro test_relocs,name,width
13
bl
\width
\n
ame
14
b
\width
\n
ame
15
beq
\width
\n
ame
16
ldr
r4
,
1
f
17
ldr
r4
,
2
f
18
ldr
r4
,
3
f
19
ldr
r4
,
4
f
20
ldr
r5
,
5
f
21
movw
r4
,
#:lower16:\name
22
movt
r4
,
#:upper16:\name
23
1
:
24
.word \name
25
2
:
26
.word \name-.
27
3
:
28
.word \name(GOTOFF)
29
4
:
30
.word \name(GOT)
31
5
:
32
.word \name(GOT_PREL)
33
.endm
34
35
define
f1
,
.arm
36
define
f2
,
.thumb_func
37
define
f3
,
.arm
38
define
f4
,
.thumb_func
39
40
.globl f5
41
.globl f6
42
.globl f7
43
.globl f8
44
45
define
f5
,
.arm
46
define
f6
,
.thumb_func
47
define
f7
,
.arm
48
define
f8
,
.thumb_func
49
50
.globl _start
51
.type _start,%function
52
.arm
53
_start
:
54
test_relocs foo
55
test_relocs
f1
,
56
test_relocs
f2
,
57
test_relocs
f5
,
58
test_relocs
f6
,
59
.size _start,.-_start
60
61
.globl _thumb
62
.type _thumb,%function
63
.thumb_func
64
_thumb
:
65
test_relocs foo
66
test_relocs
f3
,
.w
67
test_relocs
f4
,
.w
68
test_relocs
f7
,
.w
69
test_relocs
f8
,
.w
70
.size _thumb,.-_thumb
71
72
.data
73
foo
:
74
.word 0x11223344