From 8f10f22b1fe51e6aee041fbd9722886055cac532 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 18 Aug 2021 10:29:38 +0200 Subject: [PATCH] cpu/cortexm: ldscripts: bkup-ram -> bkup_ram Fixes this error with binutils 2.37: ``` /usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/bin/ld:cortexm_base.ld:217: warning: memory region `bkup' not declared /usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/bin/ld:cortexm_base.ld:217: syntax error ``` --- cpu/cortexm_common/ldscripts/cortexm_base.ld | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpu/cortexm_common/ldscripts/cortexm_base.ld b/cpu/cortexm_common/ldscripts/cortexm_base.ld index 01360513e818..d8a11925e77e 100644 --- a/cpu/cortexm_common/ldscripts/cortexm_base.ld +++ b/cpu/cortexm_common/ldscripts/cortexm_base.ld @@ -40,7 +40,7 @@ _backup_ram_len = DEFINED( _backup_ram_len ) ? _backup_ram_len : 0x0 ; /* not all Cortex-M platforms use cortexm.ld yet */ MEMORY { - bkup-ram (w!rx) : ORIGIN = _backup_ram_start_addr, LENGTH = _backup_ram_len + bkup_ram (w!rx) : ORIGIN = _backup_ram_start_addr, LENGTH = _backup_ram_len } /* Section Definitions */ @@ -214,7 +214,7 @@ SECTIONS _ebackup_data = .; /* Round size so that we can use 4 byte copy in init */ . = ALIGN(4); - } > bkup-ram AT> rom + } > bkup_ram AT> rom .backup.bss (NOLOAD) : ALIGN(4) { _sbackup_bss = .; @@ -222,10 +222,10 @@ SECTIONS _ebackup_bss = .; /* Round size so that we can use 4 byte copy in init */ . = ALIGN(4); - } > bkup-ram + } > bkup_ram .heap3 (NOLOAD) : ALIGN(4) { _sheap1 = . ; - _eheap1 = ORIGIN(bkup-ram) + LENGTH(bkup-ram); - } > bkup-ram + _eheap1 = ORIGIN(bkup_ram) + LENGTH(bkup_ram); + } > bkup_ram }