summaryrefslogtreecommitdiff
path: root/ld/stm32f103c8t6.ld
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2021-09-26 12:50:49 +0200
committerxengineering <me@xengineering.eu>2021-09-26 14:07:59 +0200
commit5d17a976070be9d66349da0ddd28361884f3461d (patch)
treeef3e2c0078863aa651008e4f2f9eb4f846bfcc50 /ld/stm32f103c8t6.ld
parent7211bd49452e67e0b53ea06ca474f4e54af991ae (diff)
downloadledcontrol-5d17a976070be9d66349da0ddd28361884f3461d.tar
ledcontrol-5d17a976070be9d66349da0ddd28361884f3461d.tar.zst
ledcontrol-5d17a976070be9d66349da0ddd28361884f3461d.zip
Link against libopencm3
Diffstat (limited to 'ld/stm32f103c8t6.ld')
-rw-r--r--ld/stm32f103c8t6.ld32
1 files changed, 32 insertions, 0 deletions
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 */
+}
+