This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC extension for protecting applications from format string attacks


> On Thu, Apr 05, 2001 at 11:51:03AM -0700, Zack Weinberg wrote:
> > To the best of my knowledge, all ABIs supported by GCC have
> > at least one call-clobbered register which is not used to pass
> > arguments.
> 
> ARM has only 4 call clobbered registers and uses all of them
> in parameter passing.  This presents nasty problems for the
> static chain register, for instance.
> 

Actually, it has 5: r0-r3 + ip (aka r12 depending on your naming 
preferences).  But r12 is used in some ABI variants as part of the 
prologue entry code, or as a scratch when calling into shared libraries, 
so even that cannot be used for passing additional information.

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]