From c2aae4ccb63158f197c3d0629082e7699dfe8e25 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 14 Dec 2015 07:51:19 +0100 Subject: correct linking, putting the assembly code in .text with proper linking script made ld recognise the functions as thumb instructions. --- cmake/stm32.ld | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'cmake') 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 } -- cgit v1.2.3