shingarov / Pharo-ArchC

Generate binutils from formal spec
MIT License
4 stars 1 forks source link

Add support for relocations #39

Open janvrany opened 2 weeks ago

janvrany commented 2 weeks ago

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.

shingarov commented 2 weeks ago

Hmm… looking at this code, I am now inclined to re-read Stephen Kell's The Missing Link, much more carefully this time.