From 62400bd07faaf7d4d2e3df5e01269f1f210cafae Mon Sep 17 00:00:00 2001 From: Jim Paris Date: Tue, 28 Sep 2010 16:29:52 -0400 Subject: [PATCH] Move stack near BSS so it doesn't take up space in the .bin --- mc1322x.lds | 62 +++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/mc1322x.lds b/mc1322x.lds index d4a93a57f..0be77e467 100644 --- a/mc1322x.lds +++ b/mc1322x.lds @@ -26,36 +26,6 @@ HEAP_SIZE = 1024; *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx) } =0 - .stack : { - __stack_start__ = . ; - - . += IRQ_STACK_SIZE; - . = ALIGN (4); - __irq_stack_top__ = . ; - - . += FIQ_STACK_SIZE; - . = ALIGN (4); - __fiq_stack_top__ = . ; - - . += SVC_STACK_SIZE; - . = ALIGN (4); - __svc_stack_top__ = . ; - - . += ABT_STACK_SIZE; - . = ALIGN (4); - __abt_stack_top__ = . ; - - . += UND_STACK_SIZE; - . = ALIGN (4); - __und_stack_top__ = . ; - - . += SYS_STACK_SIZE; - . = ALIGN (4); - __sys_stack_top__ = . ; - - __stack_end__ = .; - } - .interp : { *(.interp) } .note.gnu.build-id : { *(.note.gnu.build-id) } .hash : { *(.hash) } @@ -189,6 +159,38 @@ HEAP_SIZE = 1024; } .data1 : { *(.data1) } _edata = .; PROVIDE (edata = .); + + .stack : { + __stack_start__ = . ; + + . += IRQ_STACK_SIZE; + . = ALIGN (4); + __irq_stack_top__ = . ; + + . += FIQ_STACK_SIZE; + . = ALIGN (4); + __fiq_stack_top__ = . ; + + . += SVC_STACK_SIZE; + . = ALIGN (4); + __svc_stack_top__ = . ; + + . += ABT_STACK_SIZE; + . = ALIGN (4); + __abt_stack_top__ = . ; + + . += UND_STACK_SIZE; + . = ALIGN (4); + __und_stack_top__ = . ; + + . += SYS_STACK_SIZE; + . = ALIGN (4); + __sys_stack_top__ = . ; + + __stack_end__ = .; + } + + __bss_start = .; __bss_start__ = .; .bss :