opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

Review linker script

Open imphil opened this issue 7 years ago • 6 comments

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)

imphil avatar Feb 21 '19 16:02 imphil

At what point can we get a Software Eye on this (@rminnich ?) to organize our memory spaces?

sjgitty avatar Feb 21 '19 19:02 sjgitty

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.

asb avatar Feb 22 '19 10:02 asb

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. :)

aytong avatar Apr 18 '19 00:04 aytong

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 avatar Sep 04 '19 03:09 tjaychen

@tjaychen did you get any feedback? Suggest closing this issue.

aytong avatar Oct 30 '19 23:10 aytong

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.

tjaychen avatar Oct 30 '19 23:10 tjaychen