]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Lib/mk20dx128.ld
Merge branch 'master' of github.com:kiibohd/controller
[kiibohd-controller.git] / Lib / mk20dx128.ld
index a838f85deba42b36d4636eb67abc95d559798cb7..4e57f8b419d90630d51e3be7f12b6c47e1a32f13 100644 (file)
  * permit persons to whom the Software is furnished to do so, subject to
  * the following conditions:
  *
- * 1. The above copyright notice and this permission notice shall be 
+ * 1. The above copyright notice and this permission notice shall be
  * included in all copies or substantial portions of the Software.
  *
- * 2. If the Software is incorporated into a build system that allows 
+ * 2. If the Software is incorporated into a build system that allows
  * selection among a list of target devices, then similar target
  * devices manufactured by PJRC.COM must be included in the list of
  * target devices and selectable in the same manner.
@@ -48,6 +48,7 @@ SECTIONS
                *(.rodata*)
                . = ALIGN(4);
                KEEP(*(.init))
+
                . = ALIGN(4);
                __preinit_array_start = .;
                KEEP (*(.preinit_array))
@@ -56,6 +57,7 @@ SECTIONS
                KEEP (*(SORT(.init_array.*)))
                KEEP (*(.init_array))
                __init_array_end = .;
+
        } > FLASH = 0xFF
 
        .ARM.exidx : {
@@ -83,10 +85,10 @@ SECTIONS
 
        .data : AT (_etext) {
                . = ALIGN(4);
-               _sdata = .; 
+               _sdata = .;
                *(.data*)
                . = ALIGN(4);
-               _edata = .; 
+               _edata = .;
        } > RAM
 
        .noinit (NOLOAD) : {
@@ -95,7 +97,7 @@ SECTIONS
 
        .bss : {
                . = ALIGN(4);
-               _sbss = .; 
+               _sbss = .;
                *(.bss*)
                *(COMMON)
                . = ALIGN(4);
@@ -106,4 +108,3 @@ SECTIONS
        _estack = ORIGIN(RAM) + LENGTH(RAM);
 }
 
-