mirror of
https://github.com/PiMaker/rvc.git
synced 2024-09-20 06:51:49 +00:00
134e85e485
honestly forgot what I added all over the last year or so, but here you go, enjoy more cursed code
35 lines
481 B
Plaintext
35 lines
481 B
Plaintext
OUTPUT_ARCH( "riscv" )
|
|
|
|
ENTRY( _start )
|
|
|
|
MEMORY
|
|
{
|
|
ram (rwx) : ORIGIN = 0x80000000, LENGTH = 0x100000
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.kernel : {
|
|
*(.start_here)
|
|
*(.text .text.*)
|
|
*(.rodata .rodata.*)
|
|
*(.data .data.*)
|
|
} > ram
|
|
|
|
.stack (NOLOAD) : {
|
|
. = . + 0x70000;
|
|
PROVIDE(_end_stack = .);
|
|
} > ram
|
|
|
|
.heap (NOLOAD) : {
|
|
. = . + 0x70000;
|
|
PROVIDE(_end_heap = .);
|
|
} > ram
|
|
|
|
.textbuf (NOLOAD) : {
|
|
. = . + 0x10000;
|
|
PROVIDE(_end_textbuf = .);
|
|
} > ram
|
|
|
|
}
|