aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cmsis-stm32f1/source/stm32f1.ld
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-07-21 20:29:14 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-07-21 22:40:56 -0400
commit893acdb56bddbe8c24b51050187325f71e439798 (patch)
tree705cd4b3422c83967a8e0b4533aee21b32ea3b3d /lib/cmsis-stm32f1/source/stm32f1.ld
parent17bd595b155304e9f1defa480f5eb7d8c060d9d6 (diff)
downloadkutter-893acdb56bddbe8c24b51050187325f71e439798.tar.gz
kutter-893acdb56bddbe8c24b51050187325f71e439798.tar.xz
kutter-893acdb56bddbe8c24b51050187325f71e439798.zip
lib: Update stm32f1 code to version 1.8.0
Update the stm32f1 code to the latest from ST. Merge the lib/cmsis-stm32f1/ and lib/hal-stm32f1/ into a single lib/stm32f1/ directory. Document all the differences from the pristine upstream code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'lib/cmsis-stm32f1/source/stm32f1.ld')
-rw-r--r--lib/cmsis-stm32f1/source/stm32f1.ld112
1 files changed, 0 insertions, 112 deletions
diff --git a/lib/cmsis-stm32f1/source/stm32f1.ld b/lib/cmsis-stm32f1/source/stm32f1.ld
deleted file mode 100644
index 112d0fc0..00000000
--- a/lib/cmsis-stm32f1/source/stm32f1.ld
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- Generic Cortex-M linker script
- Public Domain
-*/
-
-ENTRY(Reset_Handler)
-
-MEMORY
-{
- FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 64K
- RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
-}
-
-/* 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 (*)
- }
-}