3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- glibc-2.2.5/sysdeps/mips/machine-gmon.h~glibc-2.2.5-mips-build-gmon.patch 2004-09-03 19:00:33.000000000 -0500
7 +++ glibc-2.2.5/sysdeps/mips/machine-gmon.h 2004-09-03 19:00:38.000000000 -0500
9 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
12 -#define _MCOUNT_DECL static void __mcount
13 +#define _MCOUNT_DECL(frompc,selfpc) \
14 +static void __attribute_used__ __mcount (u_long frompc, u_long selfpc)
16 /* Call __mcount with our the return PC for our caller,
17 and the return PC our caller will return to. */
19 #define CPLOAD ".cpload $25;"
20 +#define CPRESTORE ".cprestore 44\n\t"
29 - ".type _mcount,@function;" \
33 + ".globl _mcount;\n\t" \
35 + ".type _mcount,@function;\n\t" \
36 + ".ent _mcount\n\t" \
38 + ".frame $sp,44,$31\n\t" \
39 + ".set noreorder;\n\t" \
63 + "subu $29,$29,48;\n\t" \
65 + "sw $4,24($29);\n\t" \
66 + "sw $5,28($29);\n\t" \
67 + "sw $6,32($29);\n\t" \
68 + "sw $7,36($29);\n\t" \
69 + "sw $2,40($29);\n\t" \
70 + "sw $1,16($29);\n\t" \
71 + "sw $31,20($29);\n\t" \
72 + "move $5,$31;\n\t" \
74 + "jal __mcount;\n\t" \
76 + "lw $4,24($29);\n\t" \
77 + "lw $5,28($29);\n\t" \
78 + "lw $6,32($29);\n\t" \
79 + "lw $7,36($29);\n\t" \
80 + "lw $2,40($29);\n\t" \
81 + "lw $31,20($29);\n\t" \
82 + "lw $1,16($29);\n\t" \
83 + "addu $29,$29,56;\n\t" \
85 + "move $31,$1;\n\t" \
86 + ".set reorder;\n\t" \