Save a few bytes of flash by aligning BSS data.

This commit is contained in:
Dominic Clifton 2015-06-21 23:08:43 +01:00
parent 7db626747d
commit 5dee96c3e0
6 changed files with 6 additions and 7 deletions

View File

@ -97,7 +97,6 @@ SECTIONS
_sdata = .; /* create a global symbol at data start */
*(.data) /* .data sections */
*(.data*) /* .data* sections */
. = ALIGN(4);
_edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH
@ -110,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(SORT_BY_ALIGNMENT(.bss*))
*(COMMON)
. = ALIGN(4);

View File

@ -111,7 +111,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(SORT_BY_ALIGNMENT(.bss*))
*(COMMON)
. = ALIGN(4);

View File

@ -109,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(SORT_BY_ALIGNMENT(.bss*))
*(COMMON)
. = ALIGN(4);

View File

@ -109,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(SORT_BY_ALIGNMENT(.bss*))
*(COMMON)
. = ALIGN(4);

View File

@ -109,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(SORT_BY_ALIGNMENT(.bss*))
*(COMMON)
. = ALIGN(4);

View File

@ -109,7 +109,7 @@ SECTIONS
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(SORT_BY_ALIGNMENT(.bss*))
*(COMMON)
. = ALIGN(4);