Hi Christian,

On Thu, Jun 08, 2006, Christian Aichinger wrote:
> | $ gcc -I/usr/include/liboil-0.3 -Wall -ggdb a.c -c -o a.o 
> -mpreferred-stack-boundary=2

 From the gcc man page, -mpreferred-stack-boundary flag:
   [....]
   To ensure proper alignment of this values on the stack, the stack
   boundary must be as aligned as that required by any value stored on
   the stack.  Further, every function must be generated such that it
   keeps the stack aligned.  Thus calling a function compiled with a
   higher preferred stack boundary from a function compiled with a
   lower preferred stack boundary will most likely misalign the stack.
   It is recommended that libraries that use callbacks always use the
   default setting.

 None of liboil, banshee, or even mono seem to be built with
 -mpreferred-stack-boundary, yet I can imagine some of this software has
 misaligned the stack.  Is there a way to find out which and add stack
 alignment code before external function calls?

   Bye,
-- 
Loïc Minier <[EMAIL PROTECTED]>

Reply via email to