2025-04-11 09:40:32 +08:00

40 lines
587 B
Plaintext

MEMORY
{
FLASH (rx) : ORIGIN = 0x00000, LENGTH = 0x40000 /* 256K */
RAM (rwx) : ORIGIN = 0x40000, LENGTH = 0x40000 /* 256K */
}
SECTIONS
{
.text :
{
*(.text.startup.main)
*(.text*)
*(.rodata*)
. = ALIGN(4);
LONG (__data_start__)
*(.data*)
LONG (__data_end__ - __data_start__)
. = ALIGN(4);
LONG (__bss_start__)
*(.bss*)
LONG (__bss_end__ - __bss_start__)
} > FLASH
.data :
{
. = ALIGN(4);
__data_start__ = .;
*(.data*)
__data_end__ = .;
. = ALIGN(4);
__bss_start__ = .;
*(.bss*)
*(COMMON)
. = ALIGN(4);
__bss_end__ = .;
} > RAM
}