From f05ef15283af3b01d508b10319acd04a301190cb Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sun, 7 Sep 2003 03:17:10 +0000 Subject: i386/mcount.S expects to call __mcount_internal with the 2 args passed 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/i386/bits/machine-gmon.h b/libc/sysdeps/linux/i386/bits/machine-gmon.h index 6c860bc01..841518f06 100644 --- a/libc/sysdeps/linux/i386/bits/machine-gmon.h +++ b/libc/sysdeps/linux/i386/bits/machine-gmon.h @@ -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 -- cgit v1.2.3