Mail Archives: djgpp-workers/1997/12/09/06:28:18
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
- Raw text -