From 5d17a976070be9d66349da0ddd28361884f3461d Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 26 Sep 2021 12:50:49 +0200 Subject: Link against libopencm3 --- ld/stm32.ld | 32 -------------------------------- ld/stm32f103c8t6.ld | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 ld/stm32.ld create mode 100644 ld/stm32f103c8t6.ld (limited to 'ld') diff --git a/ld/stm32.ld b/ld/stm32.ld deleted file mode 100644 index 9f74206..0000000 --- a/ld/stm32.ld +++ /dev/null @@ -1,32 +0,0 @@ -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 */ -} - diff --git a/ld/stm32f103c8t6.ld b/ld/stm32f103c8t6.ld new file mode 100644 index 0000000..9f74206 --- /dev/null +++ b/ld/stm32f103c8t6.ld @@ -0,0 +1,32 @@ +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 */ +} + -- cgit v1.2.3-70-g09d2