From 13028531b6f7d957a753f57c1d29165ec421bd19 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 4 Mar 2016 05:44:17 -0800 Subject: 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. --- sysdeps/x86_64/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile index 9fcadd8a57..788e4fc591 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 -- cgit v1.2.3