I got the following error while building for a riscv core.
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: rust-lld: error:
ERROR(riscv-rt): .stack section is too small for allocating stacks for all the harts.
Consider changing `_max_hart_id` or `_hart_stack_size`.
rust-lld: error:
ERROR(riscv-rt): .stack section is too small for allocating stacks for all the harts.
Consider changing `_max_hart_id` or `_hart_stack_size`.
I can set _hart_stack_size to a smaller value, but I wonder if it would make more sense to set it to the size of the stack if the "single-hart" feature is enabled? They should effectively be the same anyway shouldn't they? This seem to work in my local memory.x:
_hart_stack_size = SIZEOF(.stack);