11 karma · joined Oct 23, 2019 (7y ago) · 10 submissions
comment 3y ago · link · parent
This repo will be useful for getting started with toolchain development. If you are just a user wanting to write c/c++ app code then use your distro's toolchain packages.
comment 4y ago · link · parent
This is mine, similar vibe :): https://stffrdhrn.github.io/
comment 5y ago · link · parent
https://github.com/haiku/haiku/blob/8f16317a5b6db5c672f33181...
comment 5y ago · link · parent
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
Compare this to the ARM tree there are a few more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
Source: https://github.com/esmil/linux/pull/6#issuecomment-844135991
comment 5y ago · link · parent
comment 6y ago · link · parent
Even with some really good documents it was still hard for me to see the big picture, that's why I drew the diagrams. I hope this article and the diagrams help with others in the future.
comment 6y ago · link · parent
For a full list of relocation types see the list in the last few links of the article. Note, the OpenRISC relocations are not all well documented.
comment 6y ago · link · parent
Addend is actually usually 0 and important as a optimization for directly accessing indexed array values. It is not usually explained very well so I hope its clear now.
If there is anything else that could use clarification I am happy to update the article or answer questions.
comment 6y ago · link · parent
I wrote this article with openrisc examples but it is meant to be easy to transfer to other architectures. In the next article I will use both x86 and openrisc examples.