|
@@ -7,7 +7,7 @@ SECTIONS
|
|
{
|
|
{
|
|
PROVIDE(_stext = ORIGIN(FLASH));
|
|
PROVIDE(_stext = ORIGIN(FLASH));
|
|
|
|
|
|
- .text _stext : ALIGN(4)
|
|
|
|
|
|
+ .text ALIGN(_stext,4) :
|
|
{
|
|
{
|
|
/* Put reset handler first in .text section so it ends up as the entry */
|
|
/* Put reset handler first in .text section so it ends up as the entry */
|
|
/* point of the program. */
|
|
/* point of the program. */
|
|
@@ -19,21 +19,20 @@ SECTIONS
|
|
*(.text .text.*);
|
|
*(.text .text.*);
|
|
} > FLASH
|
|
} > FLASH
|
|
|
|
|
|
- .rodata : ALIGN(4)
|
|
|
|
|
|
+ .rodata ALIGN(4) :
|
|
{
|
|
{
|
|
*(.rodata .rodata.*);
|
|
*(.rodata .rodata.*);
|
|
- . = ALIGN(4);
|
|
|
|
} > FLASH
|
|
} > FLASH
|
|
|
|
|
|
PROVIDE(_sbss = ORIGIN(RAM));
|
|
PROVIDE(_sbss = ORIGIN(RAM));
|
|
- .bss _sbss : ALIGN(4)
|
|
|
|
|
|
+ .bss ALIGN(_sbss,4) :
|
|
{
|
|
{
|
|
*(.bss .bss.*);
|
|
*(.bss .bss.*);
|
|
. = ALIGN(4);
|
|
. = ALIGN(4);
|
|
_ebss = .;
|
|
_ebss = .;
|
|
} > RAM
|
|
} > RAM
|
|
|
|
|
|
- .data _ebss : ALIGN(4)
|
|
|
|
|
|
+ .data _ebss :
|
|
{
|
|
{
|
|
_sidata = LOADADDR(.data);
|
|
_sidata = LOADADDR(.data);
|
|
_sdata = .;
|
|
_sdata = .;
|