Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
OUTPUT_ARCH( "riscv" )
ENTRY( reset_handler )
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 128K
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
}
SECTIONS
{
__stack_size = DEFINED(__stack_size) ? __stack_size : 1K;
.vector_table :
{
KEEP (*(SORT_NONE(.vector_table)))
} >FLASH
.text :
{
*(.rodata .rodata.*)
*(.srodata .srodata.*)
*(.text .text.*)
} >FLASH
. = ALIGN(4);
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
_sidata = .;
.data : AT( _sidata )
{
_sdata = .;
*(.rdata)
*(.data .data.*)
*(.sdata .sdata.*)
. = ALIGN(4);
_edata = .;
} >RAM
PROVIDE( _edata = . );
PROVIDE( edata = . );
PROVIDE( _fbss = . );
PROVIDE( __bss_start = . );
.bss :
{
_sbss = .;
*(.sbss*)
*(.bss .bss.*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
} >RAM
. = ALIGN(8);
PROVIDE( _end = . );
PROVIDE( end = . );
.stack ORIGIN(RAM) + LENGTH(RAM) - __stack_size :
{
PROVIDE( _heap_end = . );
. = __stack_size;
PROVIDE( _sp = . );
} >RAM
}