From 39c8d1851ea13a838a211e65839b68f70fca5346 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Wed, 27 Nov 2019 10:02:54 +1300 Subject: [PATCH] Revert the workaround for the EXST linker script. --- Makefile | 3 ++- src/link/stm32_flash_h750_exst.ld | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8ee5fde0b..68d8f4a96 100644 --- a/Makefile +++ b/Makefile @@ -241,7 +241,8 @@ CC_NO_OPTIMISATION := # TEMPORARY_FLAGS := -Wno-attributes \ -Wno-cast-function-type \ - -Wno-address-of-packed-member + -Wno-address-of-packed-member \ + -Wno-absolute-value CFLAGS += $(ARCH_FLAGS) \ $(addprefix -D,$(OPTIONS)) \ diff --git a/src/link/stm32_flash_h750_exst.ld b/src/link/stm32_flash_h750_exst.ld index bdae4c5a1..d968b1a63 100644 --- a/src/link/stm32_flash_h750_exst.ld +++ b/src/link/stm32_flash_h750_exst.ld @@ -61,10 +61,7 @@ MEMORY DTCM_RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K RAM (rwx) : ORIGIN = 0x24000000, LENGTH = 64K CODE_RAM (rx) : ORIGIN = 0x24010000, LENGTH = 448K - _exst_hash_size /* hard coded start address, as required by SPRACINGH7 boot loader, don't change! */ - /*EXST_HASH (rx) : ORIGIN = 0x24010000 + LENGTH(CODE_RAM), LENGTH = _exst_hash_size*/ -/* Workaround for https://sourceware.org/bugzilla/show_bug.cgi?id=24289, - * revert after this has been fixed in the ARM gcc. */ - EXST_HASH (rx) : ORIGIN = 0x2407FFC0, LENGTH = _exst_hash_size + EXST_HASH (rx) : ORIGIN = 0x24010000 + LENGTH(CODE_RAM), LENGTH = _exst_hash_size D2_RAM (rwx) : ORIGIN = 0x30000000, LENGTH = 256K /* SRAM1 + SRAM2 */