changeset 1798:6bc4074067e9

Fix default stack size so sh2eb builds runnable busybox and toybox.
author Rob Landley <rob@landley.net>
date Mon, 19 Oct 2015 08:53:26 -0500
parents 450df7445d09
children 9aa5983fbbaa
files sources/patches/elf2flt-stack.patch
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/elf2flt-stack.patch	Mon Oct 19 08:53:26 2015 -0500
@@ -0,0 +1,14 @@
+The default stack size is way too small to run much beyond "hello world".
+
+diff -ru elf2flt/elf2flt.c elf2flt.bak/elf2flt.c
+--- elf2flt/elf2flt.c	2015-01-04 02:14:55.000000000 -0600
++++ elf2flt.bak/elf2flt.c	2015-10-19 08:49:53.608497450 -0500
+@@ -1673,7 +1673,7 @@
+ 	    sizeof(hdr));
+ 
+ #ifndef TARGET_e1
+-  stack = 4096;
++  stack = 65536;
+ #else /* We need plenty of stack for both of them (Aggregate and Register) */
+   stack = 0x2020;
+ #endif