Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
257:d5374e80dd04 | 258:ebda5c96665e |
---|---|
41 "section .text\n" | 41 "section .text\n" |
42 "section data\n" | 42 "section data\n" |
43 "section .data\n" | 43 "section .data\n" |
44 "section bss,bss load 0000\n" | 44 "section bss,bss load 0000\n" |
45 "section .bss,bss\n" | 45 "section .bss,bss\n" |
46 "stacksize 32\n" | |
46 "entry __start\n" | 47 "entry __start\n" |
47 ; | 48 ; |
48 | 49 |
49 // the built-in DECB target linker script | 50 // the built-in DECB target linker script |
50 static char *decb_script = | 51 static char *decb_script = |