On Fri, Oct 14, 2005 at 01:43:03PM -0700, Kean Johnston wrote:
> However, I dont think the stack being aligned on a 16-byte
> boundary into main will help, unless GCC is assuming (and I
> dont see how it possibly could) that every function would
> likewise be aligned.

Yes, in fact that's *exactly* what GCC is assuming.
And it will be true for all code that GCC generates.

> Also, when you say "stack going into main is 16 byte aligned",
> what specifically do you mean?

That the first argument to main is 16-byte aligned.  This implies
that the return address from main is at addr % 16 == 12.

If you're able to fix this in your OS, don't forget to do the
same with the pthread entry function and signal handlers.


r~

Reply via email to