From 5356bc886d53291a9a812f2aba35e4e165d96fba Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Thu, 11 Dec 2025 23:58:51 -0500 Subject: initial commit --- linker_script.ld | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 linker_script.ld (limited to 'linker_script.ld') diff --git a/linker_script.ld b/linker_script.ld new file mode 100644 index 0000000..b8d1231 --- /dev/null +++ b/linker_script.ld @@ -0,0 +1,52 @@ +ENTRY(reset_handler) + +MEMORY +{ + FLASH(rx): ORIGIN = 0x08000000, LENGTH = 64K + SRAM(rw): ORIGIN = 0x20000000, LENGTH = 20K +} + +SECTIONS +{ + .isr_vector : + { + KEEP(*(.isr_vector)) + } >FLASH + + .text : + { + . = ALIGN(4); + + *(.text) + *(.rodata) + + . = ALIGN(4); + _etext = .; + } >FLASH + + _sidata = LOADADDR(.data); + + .data : + { + . = ALIGN(4); + _sdata = .; + + *(.data) + + . = ALIGN(4); + _edata = .; + } >SRAM AT> FLASH + + .bss : + { + . = ALIGN(4); + _sbss = .; + __bss_start__ = .; + + *(.bss) + + . = ALIGN(4); + _ebss = .; + __bss_end__ = .; + } >SRAM +} -- cgit v1.2.3-54-g00ecf