diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-07-27 16:43:35 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-07-27 21:32:04 -0400 |
commit | 16616662eddb17abe204c61abcf7066e6b526bf3 (patch) | |
tree | 99ca0e1c0bcaf1d282e7215310f1c8d6510acd76 /src/stm32f4/stm32f4.ld | |
parent | 961d13ee1a903c30008a625ba7e03631e4903999 (diff) | |
download | kutter-16616662eddb17abe204c61abcf7066e6b526bf3.tar.gz kutter-16616662eddb17abe204c61abcf7066e6b526bf3.tar.xz kutter-16616662eddb17abe204c61abcf7066e6b526bf3.zip |
stm32f4: Add Kconfig build rules for STM32F405/7
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32f4/stm32f4.ld')
-rw-r--r-- | src/stm32f4/stm32f4.ld | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/src/stm32f4/stm32f4.ld b/src/stm32f4/stm32f4.ld deleted file mode 100644 index 84df83fc..00000000 --- a/src/stm32f4/stm32f4.ld +++ /dev/null @@ -1,109 +0,0 @@ -/* Cortex-M linker script */ - -ENTRY(Reset_Handler) - -MEMORY -{ - FLASH (rx) : ORIGIN = 0x08000000 + FLASH_START, LENGTH = 512K - FLASH_START - RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K -} - -/* highest address of the user mode stack */ -_estack = 0x20005000; - -SECTIONS -{ - /* Interrupt vector table */ - .isr_vector : - { - . = ALIGN(4); - KEEP(*(.isr_vector)) - . = ALIGN(4); - } >FLASH - - /* Program code and constant data */ - .text : - { - . = ALIGN(4); - *(.text) - *(.text*) - *(.rodata) - *(.rodata*) - KEEP (*(.init)) - KEEP (*(.fini)) - . = ALIGN(4); - _etext = .; - } >FLASH - - /* Exception handling */ - .ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH - .ARM : { - __exidx_start = .; - *(.ARM.exidx*) - __exidx_end = .; - } >FLASH - - /* Static constructor initialization (C++) */ - .preinit_array : - { - PROVIDE_HIDDEN (__preinit_array_start = .); - KEEP (*(.preinit_array*)) - PROVIDE_HIDDEN (__preinit_array_end = .); - } >FLASH - .init_array : - { - PROVIDE_HIDDEN (__init_array_start = .); - KEEP (*(SORT(.init_array.*))) - KEEP (*(.init_array*)) - PROVIDE_HIDDEN (__init_array_end = .); - } >FLASH - .fini_array : - { - PROVIDE_HIDDEN (__fini_array_start = .); - KEEP (*(SORT(.fini_array.*))) - KEEP (*(.fini_array*)) - PROVIDE_HIDDEN (__fini_array_end = .); - } >FLASH - - - /* Initialized data, needs to be handled by startup code */ - _sidata = .; - .data : AT (_sidata) - { - . = ALIGN(4); - _sdata = . ; - _data = . ; - *(.data) - *(.data*) - *(.RAMtext) - . = ALIGN(4); - _edata = . ; - } >RAM - - /* Uninitialized data */ - .bss (NOLOAD) : - { - . = ALIGN(4); - _sbss = .; - __bss_start__ = .; - _bss = .; - *(.bss) - *(.bss*) - *(COMMON) - . = ALIGN(4); - _ebss = .; - __bss_end__ = _ebss; - } >RAM - - /* Pointers to end of data for dynamic memory management */ - PROVIDE (end = _ebss); - PROVIDE (_end = _ebss); - - /* Remove debugging from standard libraries */ - /DISCARD/ : - { - libc.a (*) - libm.a (*) - libgcc.a (*) - } -} |