diff options
Diffstat (limited to 'arch/riscv64.ld')
| -rw-r--r-- | arch/riscv64.ld | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/riscv64.ld b/arch/riscv64.ld new file mode 100644 index 0000000..cad0f07 --- /dev/null +++ b/arch/riscv64.ld @@ -0,0 +1,25 @@ +ENTRY(start); + +. = 0x80200000; + +SECTIONS { + .text : ALIGN(4K) { + *(.init); + *(.text); + } + .bss : ALIGN(4K) { + PROVIDE(bss_start = .); + *(.bss); + . += 4096; + PROVIDE(stack_top = .); + . += 4096; + PROVIDE(global_pointer = .); + PROVIDE(bss_end = .); + } + .rodata : ALIGN(4K) { + *(.rodata); + } + .data : ALIGN(4K) { + *(.data); + } +} |
