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

--- Comment #12 from Michael Matz <matz at gcc dot gnu.org> ---
(clicked send too soon)

...

Either way, I think GCC should emit a PIC sequence under -fPIC, also for
the function profiler, either by direct GOT access, or by using the @plt
decoration, depending on if the PLT needs to be avoided here or not.  A naked
'mcount' reference certainly is not the correct thing.

Reply via email to