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-1.s
blob
7745c548f031c412937ed854d03efa16089af537
1
.macro define,name
2
.type \name,%gnu_indirect_function
3
\n
ame
:
4
mov pc
,
lr
5
.size \name,.-\name
6
.endm
7
8
.macro test_relocs,name
9
bl
\n
ame
10
ldr
r4
,
1
f
11
ldr
r4
,
2
f
12
ldr
r4
,
3
f
13
ldr
r4
,
4
f
14
ldr
r5
,
5
f
15
1
:
16
.word \name
17
2
:
18
.word \name-.
19
3
:
20
.word \name(GOTOFF)
21
4
:
22
.word \name(GOT)
23
5
:
24
.word \name(GOT_PREL)
25
.endm
26
27
.global f2
28
29
.global f3
30
.hidden f3
31
32
define
f1
33
define
f2
34
define
f3
35
36
.globl _start
37
_start
:
38
test_relocs foo
39
test_relocs
f1
40
test_relocs
f2
41
test_relocs
f3
42
.size _start,.-_start
43
44
.data
45
foo
:
46
.word 0x11223344
47
.word __irel_start
48
.word __irel_end