X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fscripts%2Fstm32p103_rom.ld;fp=bertos%2Fcpu%2Fcortex-m3%2Fscripts%2Fstm32p103_rom.ld;h=0000000000000000000000000000000000000000;hb=e2cdc8384c68cea178b0e585bb4467dae454b449;hp=60548cb85e9ea8070fdae369fe2885f71d50e3cd;hpb=55493122184ef479aef5b63752c7758659c8d046;p=bertos.git diff --git a/bertos/cpu/cortex-m3/scripts/stm32p103_rom.ld b/bertos/cpu/cortex-m3/scripts/stm32p103_rom.ld deleted file mode 100644 index 60548cb8..00000000 --- a/bertos/cpu/cortex-m3/scripts/stm32p103_rom.ld +++ /dev/null @@ -1,118 +0,0 @@ -/** - * \file - * - * - * \author Andrea Righi - * - * \brief Script for Olimex STM32-P103 Cortex-M3 board. - * - */ - -SEARCH_DIR(.) -OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") -OUTPUT_ARCH(arm) - -/* - * Define memory configuration for LM3S1968 board - */ -MEMORY -{ - rom(rx) : org = 0x00000000, len = 128k - ram(rwx) : org = 0x20000000, len = 20k -} - -/* - * Define stack size here - */ -STACK_SIZE = 0x1000; - -/* - * Allocate section memory - */ -SECTIONS -{ - .text : - { - KEEP(*(.vectors)); - . = ALIGN (4); - KEEP(*(.init)); - . = ALIGN (4); - *(.rodata .rodata.*); - . = ALIGN (4); - *(.text .text.*); - . = ALIGN (4); - *(.glue_7t); - . = ALIGN(4); - *(.glue_7); - . = ALIGN(4); - } > rom - - __text_end = .; - PROVIDE (__text_end = .); - - .data : AT (__text_end) - { - PROVIDE (__data_start = .); - . = ALIGN (0x400); - *(vtable) - *(.data .data.*) - . = ALIGN (4); - _edata = .; - PROVIDE (__data_end = .); - } > ram - - .bss : - { - PROVIDE (__bss_start = .); - *(.bss .bss.*) - . = ALIGN(4); - *(COMMON) - . = ALIGN(4); - PROVIDE (__bss_end = .); - } > ram - - /* - * Allocated stack at the end of bss section. - * Data heap is allocate at end of stack. - */ - PROVIDE (__msp_start = .); - . = ALIGN(8); - . += STACK_SIZE; - PROVIDE (__msp_end = .); - - PROVIDE (__psp_start = .); - . = ALIGN(8); - . += STACK_SIZE; - PROVIDE (__psp_end = .); - - PROVIDE (__heap_start = .); - . = ALIGN(8); -}