aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-FATFS-GCC/ch.ld
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARM7-LPC214x-FATFS-GCC/ch.ld')
-rw-r--r--demos/ARM7-LPC214x-FATFS-GCC/ch.ld41
1 files changed, 23 insertions, 18 deletions
diff --git a/demos/ARM7-LPC214x-FATFS-GCC/ch.ld b/demos/ARM7-LPC214x-FATFS-GCC/ch.ld
index e68868f72..8515eeac7 100644
--- a/demos/ARM7-LPC214x-FATFS-GCC/ch.ld
+++ b/demos/ARM7-LPC214x-FATFS-GCC/ch.ld
@@ -43,25 +43,35 @@ __dma_end__ = 0x7FD00000 + __dma_size__;
SECTIONS
{
- . = 0;
+ . = 0;
- .text : ALIGN(16) SUBALIGN(16)
- {
+ .text : ALIGN(16) SUBALIGN(16)
+ {
_text = .;
KEEP(*(vectors))
*(.text)
- *(.text.*);
- *(.rodata);
- *(.rodata.*);
- *(.glue_7t);
- *(.glue_7);
- *(.gcc*);
- *(.ctors);
- *(.dtors);
- . = ALIGN(4);
- _etext = .;
+ *(.text.*)
+ *(.rodata)
+ *(.rodata.*)
+ *(.glue_7t)
+ *(.glue_7)
+ *(.gcc*)
+ *(.ctors)
+ *(.dtors)
} > 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 :
@@ -87,11 +97,6 @@ SECTIONS
. = ALIGN(4);
_bss_end = .;
} > ram
-
- /DISCARD/ :
- {
- *(.eh_*)
- }
}
PROVIDE(end = .);