Updated Malay translation for the bfd sub-directory
[binutils-gdb.git] / ld / testsuite / ld-riscv-elf / ifunc-overwrite.s
blobfd83ae836b6ce9bcd8dde9ae2c6a798617491a1c
1 .text
3 .type foo_resolver, @function
4 foo_resolver:
5 ret
6 .size foo_resolver, .-foo_resolver
8 .globl foo1
9 .type foo1, %gnu_indirect_function
10 .set foo1, foo_resolver
12 .globl foo2
13 .type foo2, %gnu_indirect_function
14 .set foo2, foo_resolver
16 .globl foo3
17 .type foo3, %gnu_indirect_function
18 .set foo3, foo_resolver
20 .globl bar
21 .type bar, @function
22 bar:
23 .L1:
24 auipc x1, %got_pcrel_hi (foo1)
25 .ifdef __64_bit__
26 ld x1, %pcrel_lo (.L1) (x1)
27 .else
28 lw x1, %pcrel_lo (.L1) (x1)
29 .endif
31 call foo1
32 call foo1@plt
34 .L2:
35 auipc x2, %got_pcrel_hi (foo2)
36 .ifdef __64_bit__
37 ld x2, %pcrel_lo (.L2) (x2)
38 .else
39 lw x2, %pcrel_lo (.L2) (x2)
40 .endif
41 ret
42 .size bar, .-bar
44 .data
45 foo3_addr:
46 .ifdef __64_bit__
47 .quad foo3
48 .else
49 .long foo3
50 .endif