2021-09-08 23:43:15 -06:00
|
|
|
OUTPUT_ARCH( "riscv" )
|
2020-09-27 18:04:08 -06:00
|
|
|
ENTRY(_start)
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
2021-07-02 03:11:50 -06:00
|
|
|
ROM (rx) : ORIGIN = 0x00000000, LENGTH = 2k
|
|
|
|
RAM (rwx) : ORIGIN = 0x00000800, LENGTH = 2k
|
2020-11-10 00:19:42 -07:00
|
|
|
/* FLASH (rx) : ORIGIN = 0x00200000, LENGTH = 512 */
|
2020-09-27 18:04:08 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text :
|
|
|
|
{
|
2020-11-14 23:04:24 -07:00
|
|
|
/* . = ALIGN(4); */
|
2020-09-27 18:04:08 -06:00
|
|
|
_text = .;
|
|
|
|
*(.text*)
|
|
|
|
*(.rodata*)
|
|
|
|
_etext = .;
|
2020-11-14 23:04:24 -07:00
|
|
|
/* . = ALIGN(4); */
|
2020-09-27 18:04:08 -06:00
|
|
|
} > ROM
|
2020-11-10 00:19:42 -07:00
|
|
|
|
|
|
|
.data :
|
|
|
|
{
|
2020-11-14 23:04:24 -07:00
|
|
|
/* . = ALIGN(4); */
|
2020-11-10 00:19:42 -07:00
|
|
|
_data = .;
|
|
|
|
*(.data*)
|
|
|
|
_edata = .;
|
2020-11-14 23:04:24 -07:00
|
|
|
/* . = ALIGN(4); */
|
2020-11-10 00:19:42 -07:00
|
|
|
} > RAM /*AT> FLASH*/
|
2020-09-27 18:04:08 -06:00
|
|
|
}
|