Commit 5dee96c3 authored by Dominic Clifton's avatar Dominic Clifton
Browse files

Save a few bytes of flash by aligning BSS data.

parent 7db62674
...@@ -97,7 +97,6 @@ SECTIONS ...@@ -97,7 +97,6 @@ SECTIONS
_sdata = .; /* create a global symbol at data start */ _sdata = .; /* create a global symbol at data start */
*(.data) /* .data sections */ *(.data) /* .data sections */
*(.data*) /* .data* sections */ *(.data*) /* .data* sections */
. = ALIGN(4); . = ALIGN(4);
_edata = .; /* define a global symbol at data end */ _edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH } >RAM AT> FLASH
...@@ -110,7 +109,7 @@ SECTIONS ...@@ -110,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */ _sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss; __bss_start__ = _sbss;
*(.bss) *(.bss)
*(.bss*) *(SORT_BY_ALIGNMENT(.bss*))
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
......
...@@ -111,7 +111,7 @@ SECTIONS ...@@ -111,7 +111,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */ _sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss; __bss_start__ = _sbss;
*(.bss) *(.bss)
*(.bss*) *(SORT_BY_ALIGNMENT(.bss*))
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
......
...@@ -109,7 +109,7 @@ SECTIONS ...@@ -109,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */ _sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss; __bss_start__ = _sbss;
*(.bss) *(.bss)
*(.bss*) *(SORT_BY_ALIGNMENT(.bss*))
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
......
...@@ -109,7 +109,7 @@ SECTIONS ...@@ -109,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */ _sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss; __bss_start__ = _sbss;
*(.bss) *(.bss)
*(.bss*) *(SORT_BY_ALIGNMENT(.bss*))
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
......
...@@ -109,7 +109,7 @@ SECTIONS ...@@ -109,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */ _sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss; __bss_start__ = _sbss;
*(.bss) *(.bss)
*(.bss*) *(SORT_BY_ALIGNMENT(.bss*))
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
......
...@@ -109,7 +109,7 @@ SECTIONS ...@@ -109,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */ _sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss; __bss_start__ = _sbss;
*(.bss) *(.bss)
*(.bss*) *(SORT_BY_ALIGNMENT(.bss*))
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment