rt: Fix i386/morestack.S for static linking

This commit is contained in:
Brian Anderson 2011-11-29 13:15:48 -08:00
parent 5ce33ceb76
commit 9675343dc9
2 changed files with 3 additions and 2 deletions

View File

@ -94,7 +94,8 @@ MORESTACK:
movl NEW_STACK_ADDR,%eax
movl %eax,(%esp)
movl %edx,4(%esp)
calll UPCALL_CALL_C_STACK
// FIXME: Don't understand why just _here_ I have to say @PLT
calll UPCALL_CALL_C_STACK@PLT
movl 12(%esp),%edx // Grab the return pointer.
addl $RETURN_OFFSET,%edx // Skip past the `add esp,4` and the `ret`.

View File

@ -96,7 +96,7 @@ static size_t const BUF_BYTES = 2048;
// FIXME: We want this to be 128 but need to slim the red zone calls down
#ifdef __i386__
#define RED_ZONE_SIZE 256
#define RED_ZONE_SIZE 2048
#endif
#ifdef __x86_64__