diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-02 15:35:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-02 15:35:19 +0200 |
| commit | ab54bcd5bee32eeb5e182ffff4e8bb187e875aa0 (patch) | |
| tree | e7505b27850201450eb3528006c440638f1241ce /src/rv64/script.lds | |
| parent | f42ce43556475acb576fa926f685128d1dccf64b (diff) | |
| parent | a113f91c6be56c3f39fc7680ec7f5c814d4d2c27 (diff) | |
Merge pull request #2 from amlel-el-mahrouss/dev
add: rv64 CI, and copyright updates.
Diffstat (limited to 'src/rv64/script.lds')
| -rw-r--r-- | src/rv64/script.lds | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/rv64/script.lds b/src/rv64/script.lds new file mode 100644 index 0000000..ca4e8dc --- /dev/null +++ b/src/rv64/script.lds @@ -0,0 +1,46 @@ +ENTRY(cb_reset_vector); + +. = 0x80000000; + +SECTIONS { + .text : ALIGN(4K) { + PROVIDE(_text_start = .); + + *(.init); + *(.text); + + PROVIDE(_text_end = .); + } + + PROVIDE(cb_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(cb_stack_end = . + 0x1000); + + PROVIDE(cb_memory_end = .); + PROVIDE(cb_boot_processor_ready = . + 0x4); +} |
