patches/glibc/2.3.2/arm-mcount_internal.patch
changeset 301 2be7232a73ac
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.3.2/arm-mcount_internal.patch	Sat Jul 28 21:34:41 2007 +0000
     1.3 @@ -0,0 +1,30 @@
     1.4 +#
     1.5 +# Submitted:
     1.6 +# 
     1.7 +# Robert Schwebel, 2003-12-22
     1.8 +#  
     1.9 +# Error:
    1.10 +# 
    1.11 +# ... undefined reference to mcount_internal ...
    1.12 +# 
    1.13 +# Description: 
    1.14 +#
    1.15 +# State:
    1.16 +# 
    1.17 +# unknown
    1.18 +#
    1.19 +
    1.20 +--- glibc-2.3.2/sysdeps/arm/machine-gmon.h	2001-07-07 21:21:19.000000000 +0200
    1.21 ++++ glibc-2.3.2-ptx/sysdeps/arm/machine-gmon.h	2003-12-21 23:58:26.000000000 +0100
    1.22 +@@ -32,10 +32,8 @@
    1.23 + weak_alias (_mcount, mcount)
    1.24 + #endif
    1.25 + 
    1.26 +-static void mcount_internal (u_long frompc, u_long selfpc);
    1.27 +-
    1.28 + #define _MCOUNT_DECL(frompc, selfpc) \
    1.29 +-static void mcount_internal (u_long frompc, u_long selfpc)
    1.30 ++void mcount_internal (u_long frompc, u_long selfpc)
    1.31 + 
    1.32 + /* This macro/func MUST save r0, r1 because the compiler inserts
    1.33 + 	blind calls to _mount(), ignoring the fact that _mcount may