Align the stack to a 16 byte boundary so that we can safely call functions
that use SSE. The compiler does attempt to do this in main() but not very successfully - it still manages to use unaligned offsets from %ebp in some cases. Also we need to have an aligned stack in case something uses SSE via _init(). MFC After: 1 week
This commit is contained in:
parent
9310a53def
commit
6f21c8127a
@ -78,6 +78,9 @@ _start(char *ap, ...)
|
||||
char **env;
|
||||
const char *s;
|
||||
|
||||
#ifdef __GNUC__
|
||||
__asm__("and $0xfffffff0,%esp");
|
||||
#endif
|
||||
cleanup = get_rtld_cleanup();
|
||||
argv = ≈
|
||||
argc = *(long *)(void *)(argv - 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user