X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fscripts%2Flm3s1968_rom.ld;h=eff380edcf9b20adc1ba9fbfec2ee54db00af506;hb=d369c385f36aae74d203f6c40ee81c80d9032bbc;hp=e6c0e018bb3250dee085894ab6b69dd53fb8133a;hpb=ffc9d84f819c7480515ece4417329f4972510462;p=bertos.git diff --git a/bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld b/bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld index e6c0e018..eff380ed 100644 --- a/bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld +++ b/bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld @@ -36,83 +36,20 @@ * */ -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 = 256k - ram(rwx) : org = 0x20000000, len = 64k -} - /* * Define stack size here + * Variable used in the cortex-m3_rom.ld file */ STACK_SIZE = 0x1000; /* - * Allocate section memory + * Define memory configuration for LM3S1968 board */ -SECTIONS +MEMORY { - .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 = .); - *(vtable) - . = ALIGN (0x400); - *(.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(4); - . += STACK_SIZE; - PROVIDE (__msp_end = .); + rom(rx) : org = 0x00000000, len = 256k + ram(rwx) : org = 0x20000000, len = 64k +} - PROVIDE (__psp_start = .); - . = ALIGN(4); - . += STACK_SIZE; - PROVIDE (__psp_end = .); +INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld" - PROVIDE (__heap_start = .); - . = ALIGN(4); -}