diff lwlink/output.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 11b710d231bd
children 7de7b14ebaee
line wrap: on
line diff
--- a/lwlink/output.c	Thu Jan 31 16:28:41 2013 -0700
+++ b/lwlink/output.c	Thu Jan 31 19:34:54 2013 -0700
@@ -262,6 +262,7 @@
 		}
 		codedatasize += sectlist[sn].ptr -> codesize;
 	}
+	bsssize += linkscript.stacksize;
 
 	// now bss size is the data size for the module
 	// and codesize is the length of the module minus the module header