From db19dd13066a3f9d9495a587f42c3b7cfdfd408d Mon Sep 17 00:00:00 2001 From: Jochen Hoenicke Date: Thu, 22 Jun 2017 21:13:06 +0200 Subject: [PATCH] Set -mcpu=cortex-m3 linker flag. This fixes a bug with Ubuntu 17.04. It includes the correct architecture (armv7-m) and also includes the flag -mfix-cortex-m3-ldrd as default. --- Makefile.include | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index 524f622..15a7d90 100644 --- a/Makefile.include +++ b/Makefile.include @@ -71,9 +71,8 @@ LDFLAGS += --static \ -T$(LDSCRIPT) \ -nostartfiles \ -Wl,--gc-sections \ + -mcpu=cortex-m3 \ -mthumb \ - -march=armv7 \ - -mfix-cortex-m3-ldrd \ -msoft-float all: $(NAME).bin