* Manuel Lauss: > Is there an explanation of how this whole stack magic works? I wrote > a small test for dlvsym() and its stack pointer is precisely > aligned so that the vmovdqa with displacement 0xc points to a 16-byte > aligned address. However I don't get how the failing program gets its > misaligned stack. Does it have to be built with special compiler flags or > linker scripts? There are compiler flags to mess up stack alignment, yes. But in general this is caused by old binaries, built with compilers that still used the old stack alignment logic. Somewhat rarer is manually written new assembler code that is just broken. Thanks, Florian