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


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