Gcc defaults to 128bit alignment for stack

262 views
Skip to first unread message

hon...@gmail.com

unread,
Dec 7, 2006, 2:46:12 PM12/7/06
to IA32 System V Application Binary Interface
Gcc now defaults to 128bit alignment for stack:

http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00252.html

to address a few gcc bugs:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28621
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27537

The original IA32 psABI only requires stack to be aligned at 32bit.
This change means that functions in object files generated by gcc
may not work correctly when called from object files which only
guarantee 32bit stack alignment. Since it is very unlikely for gcc to
default to 32bit stack alignment, it is highly recommended that
functions should have stack aligned at 128bit before calling functions
generated by gcc.

Reply all
Reply to author
Forward
0 new messages