OSDN Git Service

i386/mcount.S expects to call __mcount_internal with the 2 args passed
authorManuel Novoa III <mjn3@codepoet.org>
Sun, 7 Sep 2003 03:17:10 +0000 (03:17 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Sun, 7 Sep 2003 03:17:10 +0000 (03:17 -0000)
in registers.

NOTE:  i386/mcount.S really needs to be rewritten.  It currently won't
work for non-PIC builds.

libc/sysdeps/linux/i386/bits/machine-gmon.h

index 6c860bc..841518f 100644 (file)
@@ -33,7 +33,7 @@
 extern void mcount_internal (u_long frompc, u_long selfpc);
 
 #define _MCOUNT_DECL(frompc, selfpc) \
-void mcount_internal (u_long frompc, u_long selfpc)
+void __attribute__ (( regparm (2) )) mcount_internal (u_long frompc, u_long selfpc)
 
 
 /* Define MCOUNT as empty since we have the implementation in another