diff options
author | 2020-08-25 09:55:00 -0500 | |
---|---|---|
committer | 2020-08-25 09:55:00 -0500 | |
commit | 49a68f13d8d22cad02004e4c90559345b225ce26 (patch) | |
tree | 63fec9cc2ccae63c1ae1c8379f6d1627f4ee7330 | |
parent | fe7751417163dc4e54b8c920afe9b1596cc735e8 (diff) | |
download | cortex-m-49a68f13d8d22cad02004e4c90559345b225ce26.tar.gz cortex-m-49a68f13d8d22cad02004e4c90559345b225ce26.tar.zst cortex-m-49a68f13d8d22cad02004e4c90559345b225ce26.zip |
Use same method for __edata and __erodata
-rw-r--r-- | cortex-m-rt/link.x.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cortex-m-rt/link.x.in b/cortex-m-rt/link.x.in index 9a4c458..f5e582e 100644 --- a/cortex-m-rt/link.x.in +++ b/cortex-m-rt/link.x.in @@ -102,8 +102,9 @@ SECTIONS This is required by LLD to ensure the LMA of the following .data section will have the correct alignment. */ . = ALIGN(4); - __erodata = .; } > FLASH + . = ALIGN(4); /* Ensure __erodata is aligned if something unaligned is inserted after .rodata */ + __erodata = .; /* ## Sections in RAM */ /* ### .data */ @@ -113,8 +114,9 @@ SECTIONS __sdata = .; *(.data .data.*); . = ALIGN(4); /* 4-byte align the end (VMA) of this section */ - __edata = .; } > RAM AT>FLASH + . = ALIGN(4); /* Ensure __edata is aligned if something unaligned is inserted after .data */ + __edata = .; /* LMA of .data */ __sidata = LOADADDR(.data); |