summaryrefslogtreecommitdiff
path: root/arch/arm/lpc17xx/ldscript
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-01-23 18:00:29 -0800
committerPixel <pixel@nobis-crew.org>2011-01-23 18:00:29 -0800
commite9b4b3d26eae1a07c9c2d948e51250792beea075 (patch)
tree3b7899c7ebf12a90e8c4c2d76344293a9ee2f052 /arch/arm/lpc17xx/ldscript
parent47fb4c8b8803c5147e8f6c87d2206dadefc44b17 (diff)
Tweaking a few more flags, and adding more symbols to the ldscript.
Diffstat (limited to 'arch/arm/lpc17xx/ldscript')
-rw-r--r--arch/arm/lpc17xx/ldscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/lpc17xx/ldscript b/arch/arm/lpc17xx/ldscript
index f50b993..0f8fe23 100644
--- a/arch/arm/lpc17xx/ldscript
+++ b/arch/arm/lpc17xx/ldscript
@@ -18,7 +18,7 @@
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
/*ENTRY(_start)*/
SEARCH_DIR(.)
-GROUP(-lgcc -lc -lcs3 -lcs3unhosted -lcs3micro)
+GROUP(-lgcc -lc)
MEMORY
{
@@ -49,6 +49,7 @@ SECTIONS
{
CREATE_OBJECT_SYMBOLS
__cs3_region_start_rom = .;
+
*(.cs3.region-head.rom)
__cs3_interrupt_vector = __cs3_interrupt_vector_cortex_m;
*(.cs3.interrupt_vector)
@@ -175,6 +176,11 @@ SECTIONS
__cs3_region_zero_size_ram = _end - _edata;
__cs3_region_size_ram = LENGTH(ram);
__cs3_region_num = 1;
+
+ __FLASH_segment_start__ = ORIGIN(rom);
+ __FLASH_segment_end__ = __FLASH_segment_start__ + LENGTH(rom);
+ __SRAM_segment_start__ = ORIGIN(ram);
+ __SRAM_segment_end__ = __SRAM_segment_start__ + LENGTH(ram);
.stab 0 (NOLOAD) : { *(.stab) }
.stabstr 0 (NOLOAD) : { *(.stabstr) }