https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386
--- Comment #22 from Ard Biesheuvel <ardb at kernel dot org> --- (In reply to Alexander Monakov from comment #21) > GOT indirection for mcount has been there from the very beginning: > https://gcc.gnu.org/cgit/gcc/tree/gcc/config/i386/i386. > h?id=c98f874233428d7e6ba83def7842fd703ac0ddf1#n623 For x86_64 it was added by commit a5fa1ecdab781978f189f6fe7fff83ab04b4e6e0 Author: Jan Hubicka <j...@suse.cz> Date: Fri Nov 15 15:57:12 2002 +0100 i386-protos.h (x86_function_profiler): New function as far as I can tell, but without any rationale for the change.