diff options
| author | cheapie <no-email-for-you@example.com> | 2026-05-25 14:01:06 -0500 |
|---|---|---|
| committer | cheapie <no-email-for-you@example.com> | 2026-05-25 14:01:06 -0500 |
| commit | 2ecf97e382b4aff25bb97ea730a0c36d08747998 (patch) | |
| tree | 766ba234b73390a78cc3eae8ad3a2c09df7faead /c/rrxing-be/rvcontroller.ld | |
| parent | 6ecdb461c1a823f9c2ff007457ee9963d7e1f681 (diff) | |
| download | rvcontroller-2ecf97e382b4aff25bb97ea730a0c36d08747998.tar rvcontroller-2ecf97e382b4aff25bb97ea730a0c36d08747998.tar.gz rvcontroller-2ecf97e382b4aff25bb97ea730a0c36d08747998.tar.bz2 rvcontroller-2ecf97e382b4aff25bb97ea730a0c36d08747998.tar.xz rvcontroller-2ecf97e382b4aff25bb97ea730a0c36d08747998.zip | |
Add big-endian railroad crossing sample and big-endian versions of libraries
Diffstat (limited to 'c/rrxing-be/rvcontroller.ld')
| -rw-r--r-- | c/rrxing-be/rvcontroller.ld | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/c/rrxing-be/rvcontroller.ld b/c/rrxing-be/rvcontroller.ld new file mode 100644 index 0000000..985892b --- /dev/null +++ b/c/rrxing-be/rvcontroller.ld @@ -0,0 +1,45 @@ +/* Thanks https://github.com/darklife/darkriscv */ + __heap_size = 0x200; /* required amount of heap */ + __stack_size = 0x800; /* required amount of stack */ + ENTRY(_start); + MEMORY + { + RAM (rwx) : ORIGIN = 0x00000000, LENGTH = 0x10000 + } + SECTIONS + { + .text : + { + *(.text.startup) + *(.text) + *(.text) + *(.rodata*) + } > RAM + .data : + { + *(.sbss) + *(.data) + *(.bss) + *(.rela*) + *(COMMON) + } > RAM + + .heap : + { + . = ALIGN(4); + PROVIDE ( end = . ); + _sheap = .; + . = . + __heap_size; + . = ALIGN(4); + _eheap = .; + } >RAM + + .stack : + { + . = ALIGN(4); + _estack = .; + . = . + __stack_size; + . = ALIGN(4); + _sstack = .; + } >RAM + } |
