aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-22 09:07:50 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-22 09:07:50 +0000
commit04076d3d539f4deb1bce2d47e10153a7a7e104f3 (patch)
tree6ded8a4d8e1671db1d946d8a881f47de26b5a6c1 /testhal
parentb14c34d67db82417b171dbfe052be9ceacdf17e4 (diff)
downloadChibiOS-04076d3d539f4deb1bce2d47e10153a7a7e104f3.tar.gz
ChibiOS-04076d3d539f4deb1bce2d47e10153a7a7e104f3.tar.bz2
ChibiOS-04076d3d539f4deb1bce2d47e10153a7a7e104f3.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1948 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32/ch.ld53
1 files changed, 36 insertions, 17 deletions
diff --git a/testhal/STM32/ch.ld b/testhal/STM32/ch.ld
index 1405765cd..44f494121 100644
--- a/testhal/STM32/ch.ld
+++ b/testhal/STM32/ch.ld
@@ -20,7 +20,7 @@
/*
* ST32F103 memory setup.
*/
-__main_stack_size__ = 0x0200;
+__main_stack_size__ = 0x0400;
__process_stack_size__ = 0x0400;
__stacks_total_size__ = __main_stack_size__ + __process_stack_size__;
@@ -41,20 +41,44 @@ SECTIONS
.text : ALIGN(16) SUBALIGN(16)
{
_text = .;
- KEEP(*(vectors));
+ KEEP(*(vectors))
*(.text)
- *(.text.*);
- *(.rodata);
- *(.rodata.*);
- *(.glue_7t);
- *(.glue_7);
- *(.gcc*);
- *(.ctors);
- *(.dtors);
- . = ALIGN(4);
- _etext = .;
+ *(.text.*)
+ *(.rodata)
+ *(.rodata.*)
+ *(.glue_7t)
+ *(.glue_7)
+ *(.gcc*)
+ } > flash
+
+ .ctors :
+ {
+ PROVIDE(_ctors_start_ = .);
+ KEEP(*(SORT(.ctors.*)))
+ KEEP(*(.ctors))
+ PROVIDE(_ctors_end_ = .);
+ } > flash
+
+ .dtors :
+ {
+ PROVIDE(_dtors_start_ = .);
+ KEEP(*(SORT(.dtors.*)))
+ KEEP(*(.dtors))
+ PROVIDE(_dtors_end_ = .);
} > flash
+ .ARM.extab : {*(.ARM.extab* .gnu.linkonce.armextab.*)}
+
+ __exidx_start = .;
+ .ARM.exidx : {*(.ARM.exidx* .gnu.linkonce.armexidx.*)} > flash
+ __exidx_end = .;
+
+ .eh_frame_hdr : {*(.eh_frame_hdr)}
+
+ .eh_frame : ONLY_IF_RO {*(.eh_frame)}
+
+ . = ALIGN(4);
+ _etext = .;
_textdata = _etext;
.data :
@@ -80,11 +104,6 @@ SECTIONS
. = ALIGN(4);
_bss_end = .;
} > ram
-
- /DISCARD/ :
- {
- *(.eh_*)
- }
}
PROVIDE(end = .);