first commit
This commit is contained in:
commit
6f76f9dd9d
9 changed files with 1071 additions and 0 deletions
33
linker.ld
Normal file
33
linker.ld
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
OUTPUT_ARCH(riscv)
|
||||
ENTRY(_start)
|
||||
|
||||
MEMORY
|
||||
{
|
||||
RAM (rwx) : ORIGIN = 0x80200000, LENGTH = 126M
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.text : {
|
||||
*(.text.init)
|
||||
*(.text .text.*)
|
||||
} > RAM
|
||||
|
||||
.rodata : {
|
||||
*(.rodata .rodata.*)
|
||||
} > RAM
|
||||
|
||||
.data : {
|
||||
*(.data .data.*)
|
||||
} > RAM
|
||||
|
||||
.bss : {
|
||||
__bss_start = .;
|
||||
*(.bss .bss.*)
|
||||
*(COMMON)
|
||||
__bss_end = .;
|
||||
} > RAM
|
||||
|
||||
. = ALIGN(16);
|
||||
__stack_top = . + 0x10000;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue