diff options
Diffstat (limited to 'ld/stm32f103c8t6.ld')
-rw-r--r-- | ld/stm32f103c8t6.ld | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/ld/stm32f103c8t6.ld b/ld/stm32f103c8t6.ld index 9f74206..db01550 100644 --- a/ld/stm32f103c8t6.ld +++ b/ld/stm32f103c8t6.ld @@ -1,32 +1,9 @@ -SECTIONS -{ - . = 0x0; /* From 0x00000000 */ - - .text : - { - *(vectors) /* Vector table */ - *(.text) /* Program code */ - } - .rodata : - { - *(.rodata) /* Read only data */ - } - _DATA_ROM_START = .; - - . = 0x20000000; /* From 0x20000000 */ - _DATA_RAM_START = .; - .data : AT(_DATA_ROM_START) - { - *(.data) /* Data memory */ - } - _DATA_RAM_END = .; - - _BSS_START = .; /* Indicates where BSS section starts in RAM */ - .bss : - { - *(.bss) /* Zero-filled run time allocate data memory */ - } - _BSS_END = .; /* Indicates where BSS section ends in RAM */ +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K } +INCLUDE cortex-m-generic.ld + |