Refactor
This commit is contained in:
35
user.ld
Normal file
35
user.ld
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* ld directives the for barmetal RISCV
|
||||
*/
|
||||
OUTPUT_ARCH(riscv)
|
||||
ENTRY(_start)
|
||||
|
||||
MEMORY {
|
||||
RAM (wxa) : ORIGIN = 0x800dd1d8, LENGTH = 128M
|
||||
}
|
||||
|
||||
SECTIONS {
|
||||
. = 0x800dd1d8;
|
||||
.text : {
|
||||
KEEP(*(.text._start))
|
||||
|
||||
*(.text .text.*)
|
||||
} > RAM
|
||||
|
||||
.rodata : {
|
||||
*(.rodata .rodata.*)
|
||||
} > RAM
|
||||
|
||||
.data : {
|
||||
*(.data .data.*)
|
||||
} > RAM
|
||||
|
||||
.bss : ALIGN(8) {
|
||||
__bss_start = .;
|
||||
*(.bss .bss.*)
|
||||
__bss_end = .;
|
||||
} > RAM
|
||||
|
||||
_heap_start = ALIGN(8);
|
||||
_heap_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||
}
|
||||
Reference in New Issue
Block a user