Add sources
This commit is contained in:
34
source/firmware/picorv32-minimal.ld
Normal file
34
source/firmware/picorv32-minimal.ld
Normal file
@@ -0,0 +1,34 @@
|
||||
MEMORY { ram (rx) : ORIGIN = 0, LENGTH = 65536 }
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
. = 0x00;
|
||||
|
||||
.text : {
|
||||
*(.init*)
|
||||
*(.text*)
|
||||
} > ram
|
||||
|
||||
.bss (NOLOAD) :
|
||||
{
|
||||
*(.bss*)
|
||||
*(COMMON)
|
||||
} > ram
|
||||
|
||||
.data :
|
||||
{
|
||||
*(.data*)
|
||||
} > ram
|
||||
|
||||
.stack (NOLOAD) :
|
||||
{
|
||||
/*
|
||||
. = ALIGN(4);
|
||||
. = . + STACK_SIZE;
|
||||
*/
|
||||
|
||||
. = ORIGIN(ram) + LENGTH(ram) - 4;
|
||||
. = ALIGN(4);
|
||||
__stack_top = .;
|
||||
} > ram
|
||||
}
|
||||
Reference in New Issue
Block a user