[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#948396: New glibc broke existing app due to historic stack alignment



* Petr Vandrovec:

> As far as I can tell, while x86-64 ABI requires stack to be aligned
> on entry to the functions, x86 ABI does not have any such
> requirement, and so glibc should align stack itself if it wants to
> use XMM instructions that require aligned values.

The i386 ABI was changed after its initial release to require
additional stack alignment.

If you want to build glibc for i386 with SSE2 enabled (for example,
with -march=x86-64), you need to build it with -mrealignstack as well.
I'm not aware of any remaining issues with this combination.


Reply to: