2001-02-03 Andreas Jaeger <aj@suse.de>
+ * sysdeps/i386/elf/start.S (_start): Align stack to 16-byte
+ boundary for SSE/SSE-2 alignment.
+
* posix/Makefile ($(objpfx)annexc.out): Also pass sysincludes to
isomac.
point runs, most registers' values are unspecified, except for:
%edx Contains a function pointer to be registered with `atexit'.
- This is how the dynamic linker arranges to have DT_FINI
+ This is how the dynamic linker arranges to have DT_FINI
functions called for shared libraries that have been loaded
before this code runs.
%esp The stack contains the arguments and environment:
- 0(%esp) argc
+ 0(%esp) argc
4(%esp) argv[0]
...
(4*argc)(%esp) NULL
popl %esi /* Pop the argument count. */
movl %esp, %ecx /* argv starts just at the current stack top.*/
- /* Before pushing the arguments align the stack to a double word
- boundary to avoid penalties from misaligned accesses. Thanks
- to Edward Seidl <seidl@janed.com> for pointing this out. */
- andl $0xfffffff8, %esp
+ /* Before pushing the arguments align the stack to a 16-byte
+ (SSE needs 16-byte alignment) boundary to avoid penalties from
+ misaligned accesses. Thanks to Edward Seidl <seidl@janed.com>
+ for pointing this out. */
+ andl $0xfffffff0, %esp
pushl %eax /* Push garbage because we allocate
28 more bytes. */