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

kinetis: Memory segment attribute fixes

vectors and flashsec memory segments will not be considered for orphan
sections if rx is only given for the rom segment.
This commit is contained in:
Joakim Nohlgård 2018-05-04 07:28:54 +02:00
parent 00a974d950
commit 321aa567d6

View File

@ -27,10 +27,10 @@ _flashsec_length = 0x10;
MEMORY
{
vectors (rx) : ORIGIN = _rom_start_addr, LENGTH = _vectors_length
flashsec (rx) : ORIGIN = _rom_start_addr + _vectors_length, LENGTH = _flashsec_length
rom (rx) : ORIGIN = _rom_start_addr + _vectors_length + _flashsec_length, LENGTH = _rom_length - (_vectors_length + _flashsec_length)
ram (rwx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length
vectors : ORIGIN = _rom_start_addr, LENGTH = _vectors_length
flashsec : ORIGIN = _rom_start_addr + _vectors_length, LENGTH = _flashsec_length
rom (rx) : ORIGIN = _rom_start_addr + _vectors_length + _flashsec_length, LENGTH = _rom_length - (_vectors_length + _flashsec_length)
ram (!rx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length
}
SECTIONS