At the moment, this PR is work in progress. I'm still not 100% happy with it - design wise - but this should be enough to enable further experiments with TR and AoT withing ST25.
One thing that is probably missing is to add proper support for code object sections, so compiler can for example produce jump table for PICs in "data" section or big constants or global variable addresses in "rodata".
Once finalized, this would probably need to be split into 2 or three smallter PRs.
This PR adds basic support for relocations.
At the moment, this PR is work in progress. I'm still not 100% happy with it - design wise - but this should be enough to enable further experiments with TR and AoT withing ST25.
One thing that is probably missing is to add proper support for code object sections, so compiler can for example produce jump table for PICs in "data" section or big constants or global variable addresses in "rodata".
Once finalized, this would probably need to be split into 2 or three smallter PRs.