Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Copy x86_64 _mcount.op from _mcount.o
No need to compile x86_64 _mcount.S with -pg.  We can just copy the
normal static object.

	* gmon/Makefile (noprof): Add $(sysdep_noprof).
	* sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
  • Loading branch information
H.J. Lu committed Mar 3, 2016
1 parent ec21534 commit 87a07a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2016-03-03 H.J. Lu <hongjiu.lu@intel.com>

* gmon/Makefile (noprof): Add $(sysdep_noprof).
* sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.

2016-03-01 H.J. Lu <hongjiu.lu@intel.com> 2016-03-01 H.J. Lu <hongjiu.lu@intel.com>


* sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
Expand Down
2 changes: 1 addition & 1 deletion gmon/Makefile
Expand Up @@ -45,7 +45,7 @@ include ../Rules
# On systems where `profil' is not a system call, the same # On systems where `profil' is not a system call, the same
# problem exists for the internal functions in profil.c. # problem exists for the internal functions in profil.c.


noprof := mcount noprof := mcount $(sysdep_noprof)
ifeq (,$(filter profil,$(unix-syscalls))) ifeq (,$(filter profil,$(unix-syscalls)))
noprof += profil sprofil noprof += profil sprofil
endif endif
Expand Down
1 change: 1 addition & 0 deletions sysdeps/x86_64/Makefile
Expand Up @@ -7,6 +7,7 @@ endif


ifeq ($(subdir),gmon) ifeq ($(subdir),gmon)
sysdep_routines += _mcount sysdep_routines += _mcount
sysdep_noprof += _mcount
endif endif


ifeq ($(subdir),malloc) ifeq ($(subdir),malloc)
Expand Down

0 comments on commit 87a07a4

Please sign in to comment.