Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
257:d5374e80dd04 | 258:ebda5c96665e |
---|---|
260 bsssize += sectlist[sn].ptr -> codesize; | 260 bsssize += sectlist[sn].ptr -> codesize; |
261 continue; | 261 continue; |
262 } | 262 } |
263 codedatasize += sectlist[sn].ptr -> codesize; | 263 codedatasize += sectlist[sn].ptr -> codesize; |
264 } | 264 } |
265 bsssize += linkscript.stacksize; | |
265 | 266 |
266 // now bss size is the data size for the module | 267 // now bss size is the data size for the module |
267 // and codesize is the length of the module minus the module header | 268 // and codesize is the length of the module minus the module header |
268 // and CRC | 269 // and CRC |
269 | 270 |