This is the mail archive of the
mailing list for the GCC project.
Re: [Patch] Put warning into documentation of attribute "regparm"
On 17-May-2003, Kevin Ryde <firstname.lastname@example.org> wrote:
> Beware that on some ELF systems this attribute is unsuitable for
> global functions in shared libraries with lazy binding (which is the
> default). Lazy binding will send the first call via resolving code in
> the loader, which might assume EAX, EDX and ECX can be clobbered, as
> per the standard calling conventions. Solaris 8 is affected by this.
> GNU systems with GLIBC 2.1 or higher, and FreeBSD, are believed to be
> safe since the loaders there save all registers. (Lazy binding can be
> disabled with the linker or the loader if desired, to avoid the
That wording looks good to me.
Fergus Henderson <email@example.com> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.