2021-08-12 21:07:47 +02:00
|
|
|
MEMORY
|
|
|
|
{
|
2021-08-18 13:54:07 +02:00
|
|
|
ram (rwx) : org = 0x00000000, len = 16k
|
2021-08-12 21:07:47 +02:00
|
|
|
}
|
|
|
|
|
2021-08-18 13:54:07 +02:00
|
|
|
__ram_size = LENGTH(ram);
|
2021-08-12 21:07:47 +02:00
|
|
|
__stack_pointer = ORIGIN(ram) + LENGTH(ram) - 16;
|
|
|
|
|
2021-08-27 21:43:30 +02:00
|
|
|
ENTRY(main)
|
2021-08-12 21:07:47 +02:00
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2021-08-23 21:40:37 +02:00
|
|
|
.ram :
|
2021-08-12 21:07:47 +02:00
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
2021-08-27 21:43:30 +02:00
|
|
|
*(.text.main);
|
2021-08-12 21:07:47 +02:00
|
|
|
. = ALIGN(4);
|
|
|
|
*(.text .text* .rodata .rodata* .srodata .srodata*);
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.bss .bss.* .sbss .sbss.*);
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.data .data.* .sdata .stada.*);
|
2021-08-23 21:40:37 +02:00
|
|
|
. = ALIGN(4);
|
2021-08-18 13:54:07 +02:00
|
|
|
} > ram AT > ram
|
2021-08-12 21:07:47 +02:00
|
|
|
}
|