summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-09-07 03:17:10 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-09-07 03:17:10 +0000
commitf05ef15283af3b01d508b10319acd04a301190cb (patch)
treeed5ac2267b1bf06d49cbabd1e2b8fa303e74f266 /libc/sysdeps
parentf1fd9ae96d3bddc6878016cdaf7eb0b23bf86bb6 (diff)
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.
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/i386/bits/machine-gmon.h2
1 files changed, 1 insertions, 1 deletions
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