diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-08-21 13:52:43 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-08-22 09:58:58 -0400 |
commit | 4ef53ab0953ac664a9935b26cd6536aac44eaec7 (patch) | |
tree | 5cb2fb571e7ae34c30457eed01c8c8766c4cd115 /src/stm32/stm32.lds.S | |
parent | a44bc950a393644b1af6b2e83bdcfc265a852583 (diff) | |
download | kutter-4ef53ab0953ac664a9935b26cd6536aac44eaec7.tar.gz kutter-4ef53ab0953ac664a9935b26cd6536aac44eaec7.tar.xz kutter-4ef53ab0953ac664a9935b26cd6536aac44eaec7.zip |
stm32: Update code to use armcm_boot mechanism
Replace the stm32 provided assembler with the src/generic/armcm_boot.c
mechanism.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/stm32.lds.S')
-rw-r--r-- | src/stm32/stm32.lds.S | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/stm32/stm32.lds.S b/src/stm32/stm32.lds.S deleted file mode 100644 index 17edd23a..00000000 --- a/src/stm32/stm32.lds.S +++ /dev/null @@ -1,63 +0,0 @@ -/* Linker script for stm32f4 chips - * - * Copyright (C) 2019 Kevin O'Connor <kevin@koconnor.net> - * - * This file may be distributed under the terms of the GNU GPLv3 license. - */ - -#include "autoconf.h" - -OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") -OUTPUT_ARCH(arm) - -MEMORY -{ - rom (rx) : ORIGIN = 0x8000000 + CONFIG_FLASH_START , LENGTH = CONFIG_FLASH_SIZE - ram (rwx) : ORIGIN = 0x20000000, LENGTH = CONFIG_RAM_SIZE -} - -SECTIONS -{ - .text : { - . = ALIGN(4); - _sfixed = .; - KEEP(*(.isr_vector)) - *(.text .text.*) - *(.rodata .rodata*) - - . = ALIGN(4); - KEEP(*(.init)) - . = ALIGN(4); - KEEP(*(.fini)) - } > rom - - . = ALIGN(4); - _sidata = .; - - .data : AT (_sidata) - { - . = ALIGN(4); - _sdata = .; - *(.ramfunc .ramfunc.*); - *(.data .data.*); - . = ALIGN(4); - _edata = .; - } > ram - - .bss (NOLOAD) : - { - . = ALIGN(4); - _sbss = .; - *(.bss .bss.*) - *(COMMON) - . = ALIGN(4); - _ebss = .; - } > ram - - _sstack = 0x20000000 + CONFIG_RAM_SIZE - CONFIG_STACK_SIZE ; - .stack _sstack (NOLOAD) : - { - . = . + CONFIG_STACK_SIZE; - _estack = .; - } > ram -} |