From d64bba5b431dacc6e277078da82e84dc5415caf0 Mon Sep 17 00:00:00 2001 From: Richard Meadows Date: Sat, 6 Aug 2016 20:31:45 +0100 Subject: [PATCH] [linker] fix linker in no-bootloader mode This was introduced in 02f71ee4. The sections.ld was being specified to the linker twice, hence no text sections for data were being created. Thanks to David Wood for helping me find this hilarious stupidity. --- firmware/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/Makefile b/firmware/Makefile index ce7052f..f63c64c 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -123,7 +123,7 @@ SYSTEM += test/tmain.c ifdef BOOTLOADER LINKERS ?= chip/$(shell echo $(TARGET_CHIP) | $(TR) A-Z a-z)_bootloader.ld else -LINKERS ?= chip/$(shell echo $(TARGET_CHIP) | $(TR) A-Z a-z).ld chip/sections.ld +LINKERS ?= chip/$(shell echo $(TARGET_CHIP) | $(TR) A-Z a-z).ld endif LINKERS += chip/sections.ld