diff options
-rw-r--r-- | os/common/ports/ARM/compilers/GCC/rules.ld | 8 | ||||
-rw-r--r-- | os/common/ports/ARMCMx/compilers/GCC/rules.ld | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/os/common/ports/ARM/compilers/GCC/rules.ld b/os/common/ports/ARM/compilers/GCC/rules.ld index 8d131b75b..812c66f5e 100644 --- a/os/common/ports/ARM/compilers/GCC/rules.ld +++ b/os/common/ports/ARM/compilers/GCC/rules.ld @@ -108,27 +108,23 @@ SECTIONS ___stacks_end__ = .;
} > ram
- .data :
+ .data ALIGN(4) : ALIGN(4)
{
. = ALIGN(4);
PROVIDE(_data = .);
*(.data)
- . = ALIGN(4);
*(.data.*)
- . = ALIGN(4);
*(.ramtext)
. = ALIGN(4);
PROVIDE(_edata = .);
} > ram AT > flash
- .bss :
+ .bss ALIGN(4) : ALIGN(4)
{
. = ALIGN(4);
PROVIDE(_bss_start = .);
*(.bss)
- . = ALIGN(4);
*(.bss.*)
- . = ALIGN(4);
*(COMMON)
. = ALIGN(4);
PROVIDE(_bss_end = .);
diff --git a/os/common/ports/ARMCMx/compilers/GCC/rules.ld b/os/common/ports/ARMCMx/compilers/GCC/rules.ld index 6cf5720fc..ee6175924 100644 --- a/os/common/ports/ARMCMx/compilers/GCC/rules.ld +++ b/os/common/ports/ARMCMx/compilers/GCC/rules.ld @@ -107,27 +107,23 @@ SECTIONS __main_thread_stack_end__ = .;
} > ram
- .data :
+ .data ALIGN(4) : ALIGN(4)
{
. = ALIGN(4);
PROVIDE(_data = .);
*(.data)
- . = ALIGN(4);
*(.data.*)
- . = ALIGN(4);
*(.ramtext)
. = ALIGN(4);
PROVIDE(_edata = .);
} > ram AT > flash
- .bss :
+ .bss ALIGN(4) : ALIGN(4)
{
. = ALIGN(4);
PROVIDE(_bss_start = .);
*(.bss)
- . = ALIGN(4);
*(.bss.*)
- . = ALIGN(4);
*(COMMON)
. = ALIGN(4);
PROVIDE(_bss_end = .);
|