Review linker script
The linker script we're currently using is copied from PULP without much thought put into it: https://github.com/lowRISC/stwg-base/blob/master/sw/hello_world/link.ld
It requires a bit of a cleanup and review:
- rom -> ram
- ram should be 64k
- stack should go to the end of the ram
- starting at SRAM_BASE + 0x1000 is a workaround. I need to look into that more closely (the binary should probably include everything from SRAM_BASE on)
At what point can we get a Software Eye on this (@rminnich ?) to organize our memory spaces?
If anyone is or has access to a linker script wizard it would certainly be useful to get a more thorough review. Most linker scripts are copied and pasted from something else then hack until they work, and it would be nice to do a bit better. Even as a compiler dev, I very very rarely touch linker scripts.
Ron, temporarily assign this to you for now. If you cannot get to this anytime soon, please comment and assign this to @domrizz0 to assign SW resource. :)
just to comment on this bug.. i've made some minor modifications around incorporating flash, booting from ROM and including interrupt vectors.
Could someone have a look to see if it is currently sufficient for closing this bug?
@tjaychen did you get any feedback? Suggest closing this issue.
nope i did not get any feedback. I can close it, but i'm fairly someone will just re-open it... lets see i guess.