[PATCH] Copy x86_64 _mcount.op from _mcount.o
H.J. Lu
hjl.tools@gmail.com
Fri Mar 4 16:46:00 GMT 2016
On Fri, Mar 4, 2016 at 8:02 AM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> On Fri, Mar 4, 2016 at 5:40 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>
>> 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
>
> Looks good to me.
>
> Thanks,
> --
> Paul Pluzhnikov
Checked in:
commit 97f7112728fa6f5e2b30af4d085d5f4dedb2b89b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Mar 4 08:44:43 2016 -0800
Add a comment in sysdeps/x86_64/Makefile
Mention recursive calls when ENTRY is used in _mcount.S.
* sysdeps/x86_64/Makefile (sysdep_noprof): Add a comment.
--
H.J.
More information about the Libc-alpha
mailing list