This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Copy x86_64 _mcount.op from _mcount.o


On Thu, Mar 3, 2016 at 4:19 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> On Thu, Mar 3, 2016 at 4:10 PM, Roland McGrath <roland@hack.frob.com> wrote:
>>
>> > If I'd had a chance to review this change, I'd have said that I don't see
>> > any adequate rationale for this change.
>>
>> It's a pre-condition for using ENTRY/END here:
>> https://sourceware.org/ml/libc-alpha/2016-03/msg00055.html
>
> That needs to be said in the patch posting, and in comments in the makefile.

Like this?

-- 
H.J.
---
diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile
index 9fcadd8..788e4fc 100644
--- a/sysdeps/x86_64/Makefile
+++ b/sysdeps/x86_64/Makefile
@@ -7,6 +7,9 @@ endif

 ifeq ($(subdir),gmon)
 sysdep_routines += _mcount
+# We cannot compile _mcount.S with -pg because that would create
+# recursive calls when ENTRY is used.  Just copy the normal static
+# object.
 sysdep_noprof += _mcount
 endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]