Date: Tue, 9 Dec 1997 13:27:57 +0200 (IST) From: Eli Zaretskii To: djgpp-workers AT delorie DOT com cc: DJ Delorie , Charles Sandmann Subject: Stack alignment Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk Charles suggested to make sure in the startup code that the stack is aligned on a 4-byte boundary. Here's the necessary patch: *** src/libc/crt0/crt0.S~0 Sun Oct 6 02:19:30 1996 --- src/libc/crt0/crt0.S Tue Dec 9 09:10:10 1997 *************** *** 263,268 **** --- 263,269 ---- je no_memory movl %eax, ___djgpp_stack_limit /* Bottom of stack */ addl __stklen, %eax + andb $0xfc, %al /* make it 4-byte aligned */ movw %ds, %dx /* set stack */ movw %dx, %ss movl %eax, %esp