ELF: Don't check relocations in non-loaded, non-alloced sections
[deliverable/binutils-gdb.git] / ld / testsuite / ld-arm / ifunc-7.s
CommitLineData
34e77a92
RS
1 .macro define,name
2 .text
3 .type \name,%gnu_indirect_function
4\name:
5 mov pc,lr
6 .size \name,.-\name
7 .endm
8
9 .macro test_relocs,name
10 bl \name(PLT)
11 ldr r4,1f
12 ldr r4,2f
131:
14 .word \name(GOT)
152:
16 .word \name(GOT_PREL)
17
18 .data
19 .word \name
20 .word \name - .
21 .text
22 .endm
23
24 .globl f3
25 .hidden f3
26
27 define f1
28 define f3
29
30 .data
31foo:
32 .word 0x11223344
33
34 .text
35 .globl arm
36arm:
37 test_relocs foo
38 test_relocs f1
34e77a92 39 test_relocs f3
34e77a92 40 .size arm,.-arm
This page took 0.425251 seconds and 4 git commands to generate.