diff options
Diffstat (limited to 'demos/ARM7-LPC214x-GCC-minimal/ch.ld')
-rw-r--r-- | demos/ARM7-LPC214x-GCC-minimal/ch.ld | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/demos/ARM7-LPC214x-GCC-minimal/ch.ld b/demos/ARM7-LPC214x-GCC-minimal/ch.ld index a71fac21b..bb59cec1c 100644 --- a/demos/ARM7-LPC214x-GCC-minimal/ch.ld +++ b/demos/ARM7-LPC214x-GCC-minimal/ch.ld @@ -48,11 +48,16 @@ SECTIONS .text :
{
_text = .;
- *(.text);
+ KEEP(*(.startup))
+ *(.text)
+ *(.text.*);
*(.rodata);
- *(.rodata*);
+ *(.rodata.*);
*(.glue_7t);
*(.glue_7);
+ *(.gcc*);
+ *(.ctors);
+ *(.dtors);
. = ALIGN(4);
_etext = .;
} > flash
@@ -64,6 +69,8 @@ SECTIONS _data = .;
*(.data)
. = ALIGN(4);
+ *(.data.*)
+ . = ALIGN(4);
*(.ramtext)
. = ALIGN(4);
_edata = .;
@@ -74,6 +81,8 @@ SECTIONS _bss_start = .;
*(.bss)
. = ALIGN(4);
+ *(.bss.*)
+ . = ALIGN(4);
*(COMMON)
. = ALIGN(4);
_bss_end = .;
|