diff lwlink/script.c @ 258:ebda5c96665e

Improved stack handling for os9 target in lwlink Added "stack" as a valid symbol in the __os9 section. All instances of __os9 are now polled for "stack" symobls and the values added to the stack size set in the linker script. The stack size is then added to the final data size of the module. Also set a default minimum stack size of 32 bytes.
author William Astle <lost@l-w.ca>
date Thu, 31 Jan 2013 19:34:54 -0700
parents ce1fdc8d6568
children 7de7b14ebaee
line wrap: on
line diff
--- a/lwlink/script.c	Thu Jan 31 16:28:41 2013 -0700
+++ b/lwlink/script.c	Thu Jan 31 19:34:54 2013 -0700
@@ -43,6 +43,7 @@
 	"section .data\n"
 	"section bss,bss load 0000\n"
 	"section .bss,bss\n"
+	"stacksize 32\n"
 	"entry __start\n"
 	;