1 .abicalls 2 .set noreorder 3 4 # Define a stub for f1, which is defined in another file. 5 # 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.) 9 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 18 19 # Define dummy functions for the executable to call. 20 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 31 32 dummy f2 33 dummy f3 34