amichai-bd / rvc_asap

riscv-core-as-simple-as-passible
MIT License
10 stars 3 forks source link

use the linker variables in the crt0 file #72

Closed amichai-bd closed 2 years ago

amichai-bd commented 2 years ago

Example: The Stack pointer is calculated in the linker: (_stack_start) image

You may use it in the crt0. image

This way, when you update the Linker offsets, you don't need to update the crst0.