From 83a617261a02bedeee47f7f58f8a02300219af38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de> Date: Mon, 16 Jul 2018 14:13:04 +0200 Subject: [PATCH] cortexm_common/ldscript: add _fw_rom_length variable It will help testing if it is taken into account and for defining for outside after. --- cpu/cortexm_common/ldscripts/cortexm.ld | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/cortexm_common/ldscripts/cortexm.ld b/cpu/cortexm_common/ldscripts/cortexm.ld index 1c65d9f6d5..eb849a9602 100644 --- a/cpu/cortexm_common/ldscripts/cortexm.ld +++ b/cpu/cortexm_common/ldscripts/cortexm.ld @@ -21,10 +21,11 @@ */ _rom_offset = DEFINED( _rom_offset ) ? _rom_offset : 0x0; +_fw_rom_length = _rom_length - _rom_offset; MEMORY { - rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _rom_length - _rom_offset + rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length ram (w!rx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length } -- GitLab