diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-12-14 07:51:19 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-12-14 07:51:19 +0100 |
commit | c2aae4ccb63158f197c3d0629082e7699dfe8e25 (patch) | |
tree | 647d7de9bf61552bfc89b0a736f68caada92611c /cmake | |
parent | afbb4cc73c44b6321cae39dbe46b97155805097d (diff) | |
download | stm32f103-playground-c2aae4ccb63158f197c3d0629082e7699dfe8e25.tar.gz stm32f103-playground-c2aae4ccb63158f197c3d0629082e7699dfe8e25.tar.bz2 stm32f103-playground-c2aae4ccb63158f197c3d0629082e7699dfe8e25.tar.xz stm32f103-playground-c2aae4ccb63158f197c3d0629082e7699dfe8e25.zip |
correct linking, putting the assembly code in .text with proper linking script made ld recognise the functions as thumb instructions.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/stm32.ld | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/cmake/stm32.ld b/cmake/stm32.ld index 48e3d0c..ea06a98 100644 --- a/cmake/stm32.ld +++ b/cmake/stm32.ld @@ -24,13 +24,14 @@ SECTIONS { .text : { - KEEP(*(isr_vectors)) - *(.text.main) + *(.isr_vectors) + init.s:(.text) + *(.text) KEEP(*(.text.*)) - /* - *(.text.*) - KEEP(*(.text.high)) - KEEP(*(.text.low)) - /**/ } >FLASH + + .data : + { + *(.data*) + } >RAM } |