https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386

--- Comment #20 from Ard Biesheuvel <ardb at kernel dot org> ---
(In reply to Alexander Monakov from comment #19)
> The question is why prior to your patch GCC emitted mcount@GOT (i.e.
> avoiding the PLT trampoline for mcount on purpose), going all the way back
> to gcc-3.4 (and probably further).

Yeah, apologies, I read this the wrong way around. Not having my best day ...

I suspect lazily binding to a profiling function might result in some
unpleasant infinite recursion in the presence of ifunc resolvers etc. But I am
just guessing here.

Reply via email to