浏览代码

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 22 年之前
父节点
当前提交
f05ef15283
共有 1 个文件被更改,包括 1 次插入1 次删除
  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