Skip to content

Commit

Permalink
kinetis: Memory segment attribute fixes
Browse files Browse the repository at this point in the history
vectors and flashsec memory segments will not be considered for orphan
sections if rx is only given for the rom segment.
  • Loading branch information
Joakim Nohlgård committed May 5, 2018
1 parent 00a974d commit 321aa56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpu/kinetis/ldscripts/kinetis.ld
Expand Up @@ -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
Expand Down

0 comments on commit 321aa56

Please sign in to comment.