rust-embedded / riscv

Low level access to RISC-V processors
818 stars 160 forks source link

`riscv-rt`: `_pre_init_trap` and weak symbols #190

Closed romancardenas closed 5 months ago

romancardenas commented 6 months ago

Alternative to #188

The _pre_init_trap is now weak, and users can override it. Additionally, all default_* and Default* symbols are no longer required, since their _* version is now a weak symbol written in assembly. In this way, we could slightly reduce the size of the binaries.

Closes #155, closes #156, closes #188