Amiga: honor __stack under libnix
Reference __stkinit so the linker pulls swapstack.o from libnix.a; without it the program runs on the inherited shell stack and crashes inside Lua / level-gen.
This commit is contained in:
@@ -22,6 +22,10 @@
|
|||||||
#ifdef __SASC_60
|
#ifdef __SASC_60
|
||||||
long __stack = 256 * 1024;
|
long __stack = 256 * 1024;
|
||||||
#else
|
#else
|
||||||
/* For GCC with -noixemul (libnix), __stack is also recognized */
|
/* libnix needs __stkinit referenced to pull swapstack.o from libnix.a */
|
||||||
unsigned long __stack = 256 * 1024;
|
unsigned long __stack = 256 * 1024;
|
||||||
|
#ifdef CROSS_TO_AMIGA
|
||||||
|
extern void __stkinit(void);
|
||||||
|
void *__nh_force_stkinit = __stkinit;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user