Browse Source

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.

Manuel Novoa III 21 years ago
parent
commit
f05ef15283
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/i386/bits/machine-gmon.h

+ 1 - 1
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