mirror of
https://github.com/MiSTer-devel/CDi_MiSTer.git
synced 2026-06-14 03:04:32 +00:00
41 lines
692 B
Plaintext
41 lines
692 B
Plaintext
OUTPUT_ARCH(riscv)
|
|
ENTRY(_start)
|
|
|
|
MEMORY
|
|
{
|
|
ram (wxai!r) : ORIGIN = 0x00000000, LENGTH = 13500
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
__stack_size = 512;
|
|
|
|
/* Code and read-only data */
|
|
.text : {
|
|
*(.init) /* startup code */
|
|
*(.text*) /* main program code */
|
|
*(.rodata*) /* read-only data (const) */
|
|
} > ram
|
|
|
|
/* Zero-initialized data */
|
|
.bss : {
|
|
__bss_start = .;
|
|
*(.bss*)
|
|
*(.sbss*)
|
|
*(COMMON)
|
|
__bss_end = .;
|
|
} > ram
|
|
|
|
.noinit (NOLOAD) :
|
|
{
|
|
. = ALIGN(4);
|
|
*(.noinit .noinit.*)
|
|
} > ram
|
|
|
|
.stack : ALIGN(16)
|
|
{
|
|
. = __stack_size;
|
|
_stack_top = .;
|
|
} > ram
|
|
}
|