1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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
```
This commit is contained in:
Kaspar Schleiser 2021-08-18 10:29:38 +02:00
parent f008ee3ff6
commit 8f10f22b1f

View File

@ -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
}