[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling
ardb at kernel dot org
gcc-bugzilla@gcc.gnu.org
Thu Mar 20 16:21:25 GMT 2025
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.
More information about the Gcc-bugs
mailing list