diff options
Diffstat (limited to 'src/rv64/linkscript.ld')
| -rw-r--r-- | src/rv64/linkscript.ld | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/rv64/linkscript.ld b/src/rv64/linkscript.ld new file mode 100644 index 0000000..0a82477 --- /dev/null +++ b/src/rv64/linkscript.ld @@ -0,0 +1,46 @@ +ENTRY(mp_reset_vector); + +. = 0x80000000; + +SECTIONS { + .text : ALIGN(4K) { + PROVIDE(_text_start = .); + + *(.init); + *(.text); + + PROVIDE(_text_end = .); + } + + PROVIDE(mp_global_pointer = .); + + .bss : ALIGN(4K) { + PROVIDE(_bss_start = .); + + *(.bss); + + PROVIDE(_bss_end = .); + } + + .rodata : ALIGN(4K) { + PROVIDE(_rodata_start = .); + + *(.rodata); + + PROVIDE(_rodata_end = .); + } + + + .data : ALIGN(4K) { + PROVIDE(_data_start = .); + + *(.data); + + PROVIDE(_data_end = .); + } + + PROVIDE(mp_stack_end = . + 0x1000); + + PROVIDE(mp_memory_end = .); + PROVIDE(mp_boot_processor_ready = . + 0x4); +} |
