Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes
Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes
- Subject: Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes
- From: Terry Lambert <email@hidden>
- Date: Thu, 30 Oct 2008 10:10:45 -0700
On Oct 30, 2008, at 4:06 AM, Sorin Negoita < email@hidden> wrote: Hello,
Our application must integrate some private dynamic library, let's call it A (that may load other private dynamic libraries, let's call them B1, B2, ..., Bn) with the stack alligned for 4 bytes (boundary 2), not the Mac OS X standard (16 bytes). Those private dynamic libraries (A, B1, B2, ..., Bn) use libSystem only, apparently.
You can stop right there. The stack alignment is a requirement if you call into libSystem. The libSystem code is vectorized, which means its going to do Altivec register spills (PPC) or SSE register spills (Intel), and you'll take processor exceptions if it is not aligned.
-- Terry |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden