This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: x86-64 profiling fix
On Fri, Oct 18, 2002 at 07:48:54AM -0700, Jason R Thorpe wrote:
> > I've stopped on netbsd implementation, that unlike the rest uses @PLT
> > for call instead of GOTOFF. Why?
> > Is there some reason why @PLT method does not work elsewhere and works
> > on netbsd?
>
> Honestly, I think this is due to the fact that NetBSD doesn't build
> PIC profiling libraries, and thus the test coverage for "PIC + profiling"
> on NetBSD is nil.
The reason to not use @PLT is that is mcount has not been
resolved yet, and we go through the dynamic linker, then
registers eax, edx, ecx will be clobbered, which will be
bad for regparm functions.
So it would appear to be a netbsd bug.
r~