* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / ld / testsuite / ld-mips-elf / mips16-pic-4a.s
blob812d9d71b122f3a59fd054833d90ab3d5dc01c2a
1 .abicalls
2 .set noreorder
4 # Define a stub for f1, which is defined in another file.
6 # (It's questionable whether defining the stub and real function
7 # in separate files is really valid or useful. However, if we
8 # accept it without error, we should do something useful with it.)
10 .section .mips16.fn.f1, "ax", @progbits
11 .ent __fn
12 __fn:
13 .reloc 0,R_MIPS_NONE,f1
14 la $25,_f1
15 jr $25
16 mfc1 $4,$f12
17 .end __fn
19 # Define dummy functions for the executable to call.
21 .macro dummy,name
22 .text
23 .global \name
24 .type \name,@function
25 .ent \name
26 \name:
27 jr $31
28 nop
29 .end \name
30 .endm
32 dummy f2
33 dummy f3